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

> このドキュメントでは、Universal Login とパスワードレス接続のサポートについて説明します。

# Universal Login でのパスワードレス

<Card title="開始する前に">
  * パスワードレス接続を設定します。設定方法については、以下の記事を参照してください。

    * [メールアドレスによるパスワードレス認証](/ja/docs/authenticate/passwordless/authentication-methods/email-otp)
    * [マジックリンクによるパスワードレス認証](/ja/docs/authenticate/passwordless/authentication-methods/email-magic-link)
    * [SMS によるパスワードレス認証](/ja/docs/authenticate/passwordless/authentication-methods/sms-otp)
</Card>

<Tooltip tip="Universal Login: アプリケーションは、ユーザーの本人確認のために、Auth0 の認可サーバーでホストされている Universal Login にリダイレクトされます。" cta="用語集を表示" href="/ja/docs/glossary?term=Universal+Login">Universal Login</Tooltip> エクスペリエンスでは、[パスワードレス接続](/ja/docs/authenticate/passwordless)をサポートしています。これにより、ユーザーは電話番号またはメールアドレスを入力し、認証を完了するためのワンタイムパスワード (OTP) を受け取ることができます。

<div id="enable-passwordless-for-universal-login">
  ## Universal Login でパスワードレスを有効にする
</div>

<Tooltip tip="パスワードレス: 第 1 要素としてパスワードに依存しない認証方式です。" cta="用語集を表示" href="/ja/docs/glossary?term=Passwordless">パスワードレス</Tooltip> 接続をサポートするように Universal Login を設定するには、Authentication Profile がサポート対象のログインフローを使用するように設定し、認証時に接続を指定するようアプリケーションを更新する必要があります。

<div id="enable-identifier-first">
  ### Identifier First を有効化する
</div>

<Tooltip tip="Auth0 Dashboard: Auth0 のサービス設定を行うための主要な製品です。" cta="用語集を表示" href="/ja/docs/glossary?term=Auth0+Dashboard">Auth0 Dashboard</Tooltip> で、[Authentication > Authentication Profile.](https://manage.auth0.com/?/authentication-profiles) に移動します。

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

<div id="update-your-application">
  ### アプリケーションを更新する
</div>

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

| Database connection | Passwordless connection | Need to specify? | User experience                                 |
| ------------------- | ----------------------- | ---------------- | ----------------------------------------------- |
| はい                  | SMS または Email           | はい               | 指定したパスワードレス接続がログイン時に表示されます。                     |
| いいえ                 | SMS と Email             | いいえ              | 最初に作成されたパスワードレス接続が表示されます。                       |
| いいえ                 | SMS または Email           | いいえ              | パスワードレス接続が、ログイン時に (有効になっているソーシャル接続とともに) 表示されます。 |

ログイン時にパスワードレス接続を指定するには、`connection` パラメーターとその値 (`sms` または `email`) を [Auth0 Authentication API Login endpoint](https://auth0.com/docs/api/authentication#login) に渡す必要があります。

`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 を使用している場合は、初期化時にパスワードレス接続を指定できます。例:

```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"
  });
```

<Callout icon="file-lines" color="#0EA5E9" iconType="regular">
  Universal Login でパスワードレスと[シングルサインオン](/ja/docs/authenticate/single-sign-on)を使用している場合、接続パラメーター `sms` と `email` は既存の Auth0 セッションを利用しないため、ユーザーにはログインが求められます。
</Callout>

<div id="test-the-connection">
  ### 接続をテストする
</div>

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

<div id="signup">
  ### サインアップ
</div>

<Frame>
  <img src="https://mintcdn.com/translations/6GE5Z24GDCZehiJ9/docs/images/cdy7uua7fh8z/6ABY0ul7dceiGcdRH7glm6/617488990cb1f8f7f3f2b8efde866928/Passwordless_-_SMS_Enrollment_-_English.png?fit=max&auto=format&n=6GE5Z24GDCZehiJ9&q=85&s=a5b40087472ce254fbc45d6c5e120f04" alt="" width="482" height="662" data-path="docs/images/cdy7uua7fh8z/6ABY0ul7dceiGcdRH7glm6/617488990cb1f8f7f3f2b8efde866928/Passwordless_-_SMS_Enrollment_-_English.png" />
</Frame>

<div id="login">
  ### ログイン
</div>

<Frame>
  <img src="https://mintcdn.com/translations/6GE5Z24GDCZehiJ9/docs/images/cdy7uua7fh8z/5xHAEaXgnS43Jpnju9FCzZ/17e67c2901f6ec2a9a7421f65d84a1d1/Passwordless_Login_-_English.png?fit=max&auto=format&n=6GE5Z24GDCZehiJ9&q=85&s=c0c4fe6d3792c600089d7d05eb3e4740" alt="" width="482" height="658" data-path="docs/images/cdy7uua7fh8z/5xHAEaXgnS43Jpnju9FCzZ/17e67c2901f6ec2a9a7421f65d84a1d1/Passwordless_Login_-_English.png" />
</Frame>
