メインコンテンツへスキップ
GET
https://{tenantDomain}/api/v2
/
users
/
{id}
/
authentication-methods
Go
package example

import (
    context "context"

    management "github.com/auth0/go-auth0/management/management"
    client "github.com/auth0/go-auth0/management/management/client"
    option "github.com/auth0/go-auth0/management/management/option"
    users "github.com/auth0/go-auth0/management/management/users"
)

func do() {
    client := client.NewClient(
        option.WithToken(
            "<token>",
        ),
    )
    request := &users.ListUserAuthenticationMethodsRequestParameters{
        Page: management.Int(
            1,
        ),
        PerPage: management.Int(
            1,
        ),
        IncludeTotals: management.Bool(
            true,
        ),
    }
    client.Users.AuthenticationMethods.List(
        context.TODO(),
        "id",
        request,
    )
}
[
  {
    "created_at": "2023-11-07T05:31:56Z",
    "id": "<string>",
    "aaguid": "<string>",
    "authentication_methods": [
      {
        "id": "<string>"
      }
    ],
    "confirmed": true,
    "credential_backed_up": true,
    "credential_device_type": "<string>",
    "email": "<string>",
    "enrolled_at": "2023-11-07T05:31:56Z",
    "identity_user_id": "<string>",
    "key_id": "<string>",
    "last_auth_at": "2023-11-07T05:31:56Z",
    "link_id": "<string>",
    "name": "<string>",
    "phone_number": "<string>",
    "public_key": "<string>",
    "relying_party_identifier": "<string>",
    "transports": [
      "<string>"
    ],
    "user_agent": "<string>",
    "user_handle": "<string>"
  }
]

承認

Authorization
string
header
必須

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

パスパラメータ

id
string
必須

対象のユーザーの ID。

クエリパラメータ

page
integer

返される結果のページインデックス。最初のページは 0 です。デフォルトは 0 です。

必須範囲: x >= 0
per_page
integer

1 ページあたりの結果数。デフォルトは 50 です。

必須範囲: 0 <= x <= 100
include_totals
boolean

結果の合計件数を含むオブジェクト内に結果を返す場合は true、結果の配列を直接返す場合は false(デフォルト)を指定します。

レスポンス

ユーザーの認証方法を取得しました。

created_at
string<date-time>
必須

認証器の作成日

id
string
必須

認証方法の ID(自動生成)

type
enum<string>
必須
利用可能なオプション:
recovery-code,
totp,
push,
phone,
email,
email-verification,
webauthn-roaming,
webauthn-platform,
guardian,
passkey,
password
aaguid
string

パスキー認証方法にのみ適用されます。Authenticator Attestation Globally Unique Identifier です。

authentication_methods
object[]
confirmed
boolean

認証方法のステータス

credential_backed_up
boolean

パスキーにのみ適用されます。認証情報がバックアップされているかどうかです。

credential_device_type
string

パスキーにのみ適用されます。バックアップ可否によって定義される、認証情報が保存されているデバイスの種類です。"single_device" 認証情報はバックアップできず、別のデバイスに同期することもできません。"multi_device" 認証情報は、エンドユーザーが有効にしている場合にバックアップできます。

email
string

メールアドレスおよび email-verification 認証方法にのみ適用されます。確認メッセージの送信に使用するメールアドレスです。

enrolled_at
string<date-time>

登録日

identity_user_id
string

パスキーにのみ適用されます。認証方法にリンクされたユーザー アイデンティティの ID です。

key_id
string

WebAuthn 認証方法にのみ適用されます。生成された認証情報の ID です。

last_auth_at
string<date-time>

最終認証日時

リンクされた認証方法の ID。リンクされた認証方法はまとめて削除されます。

name
string

認証方法を識別するためのわかりやすいラベル

Maximum string length: 20
phone_number
string

電話番号の認証方法にのみ適用されます。テキストメッセージと音声通話で確認コードを送信するために使用する宛先の電話番号です。

preferred_authentication_method
enum<string>

電話の認証方法にのみ適用されます。優先する通信方法です。

利用可能なオプション:
voice,
sms
public_key
string

WebAuthn 認証方法にのみ適用されます。公開鍵です。

relying_party_identifier
string

WebAuthn/パスキー認証方法にのみ適用されます。認証情報の Relying Party 識別子です。

transports
string[]

パスキーにのみ適用されます。クライアントが認証要素と通信するために使用するトランスポートです。

user_agent
string

パスキーにのみ適用されます。パスキーの作成に使用されたブラウザーのユーザーエージェントです。

user_handle
string

パスキーにのみ適用されます。ユーザー アイデンティティのユーザー ハンドルです。