> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Universal Login での Passwordless

> このドキュメントでは、Universal Login で Passwordless 接続をサポートすることを説明します。

> [card] 始める前に
>
> * Passwordless 接続を設定します。設定方法については、以下の記事を参照してください。
>
>   * [メールによる Passwordless 認証](/docs/docs/ja-jp/authenticate/passwordless/authentication-methods/email-otp)
>   * [マジックリンクによる Passwordless 認証](/docs/docs/ja-jp/authenticate/passwordless/authentication-methods/email-magic-link)
>   * [SMS による Passwordless 認証](/docs/docs/ja-jp/authenticate/passwordless/authentication-methods/sms-otp)

Universal Login (Universal Login: アプリケーションはユーザーの本人確認のため、Auth0 の Authorization Server でホストされている Universal Login にリダイレクトされます。) は、ユーザーが電話番号またはメールアドレスを入力し、認証を完了するためのワンタイムパスワード (OTP) を受け取れる [Passwordless 接続](/docs/docs/ja-jp/authenticate/passwordless) に対応しています。

## Universal Login で Passwordless を有効にする

Universal Login で Passwordless (Passwordless: 認証の第一要素としてパスワードに依存しない認証方式。) 接続をサポートするように設定するには、Authentication Profile でサポート対象のログインフローを使用するよう設定し、認証時にその接続を指定するようアプリケーションを更新する必要があります。

### Identifier First を有効にする

Auth0 Dashboard (Auth0 Dashboard: サービスを設定するための Auth0 のメイン製品です。) で、[Authentication > Authentication Profile](https://manage.auth0.com/?/authentication-profiles) に移動します。

**Identifier First** または **Identifier First + Biometrics** を選択します。

### アプリケーションを更新する

アプリケーションで有効にしている接続の種類によっては、ログイン時に Passwordless 接続を指定するようアプリケーションを更新する必要があります。

| Database 接続 | Passwordless 接続 | Need to specify? | User experience |
| - | - | - | - |
| はい | SMS および/または Email | はい | 指定した Passwordless 接続がログイン時に表示されます。 |
| いいえ | SMS と Email | いいえ | 最初に作成された Passwordless 接続が表示されます。 |
| いいえ | SMS または Email | いいえ | Passwordless 接続が、ログイン時に (有効になっている Social 接続とともに) 表示されます。 |

ログイン時に Passwordless 接続を指定するには、[Auth0 Authentication API の Login エンドポイント](/docs/docs/ja-jp/api/authentication#login)に `connection` パラメーターとその値 (`sms` または `email`) を渡す必要があります。

`https://mytenant.us.auth0.com/authorize?client_id={id}&``connection={sms|email}``&scope=…&response_type=code&response_mode=query&state=…&redirect_uri=http%3A%2F%2Flocalhost%3A3000&code_challenge=…`

いずれかの SDK を使用している場合は、初期化時に Passwordless 接続を指定できます。たとえば、次のようにします。

```js lines theme={null}
auth0 = await createAuth0Client({
     domain: config.domain,
     client_id: config.clientId,
     connection: "email"
  });

auth0 = await createAuth0Client({
     domain: config.domain,
     client_id: config.clientId,
     connection: "sms"
  });
```

Universal Login と [Single Sign-On](/docs/docs/ja-jp/authenticate/single-sign-on) で Passwordless を使用している場合、接続パラメーター `sms` と `email` では既存の Auth0 セッションは利用されないため、ユーザーはログインを求められます。

### 接続をテストする

ユーザーがOTPの入力を求められると、次のいずれかの画面が表示されます。

### サインアップ

![](https://mintlify.s3.us-west-1.amazonaws.com/docs-dev/images/cdy7uua7fh8z/6ABY0ul7dceiGcdRH7glm6/617488990cb1f8f7f3f2b8efde866928/Passwordless_-_SMS_Enrollment_-_English.png)

### ログイン

![](https://mintlify.s3.us-west-1.amazonaws.com/docs-dev/images/cdy7uua7fh8z/5xHAEaXgnS43Jpnju9FCzZ/17e67c2901f6ec2a9a7421f65d84a1d1/Passwordless_Login_-_English.png)
