> ## 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 で Passwordless 接続をサポートすることを説明します。

# Universal Login での Passwordless

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

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

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

<div id="enable-passwordless-for-universal-login">
  ## Universal Login で Passwordless を有効にする
</div>

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

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

<Tooltip tip="Auth0 Dashboard: サービスを設定するための Auth0 のメイン製品です。" cta="用語集を見る" href="/docs/ja-jp/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>

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

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

ログイン時に Passwordless 接続を指定するには、[Auth0 Authentication API の Login エンドポイント](https://auth0.com/docs/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"
  });
```

<Callout icon="file-lines" color="#0EA5E9" iconType="regular">
  Universal Login と [Single Sign-On](/docs/ja-jp/authenticate/single-sign-on) で Passwordless を使用している場合、接続パラメーター `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>
