1
私のSPAクライアントは、Auth0.jsパスワードなしの開始/検証フローを使用してユーザーを認証しています。私の認証コールバックページに以下のペイロード検証エラーが表示されます。 Auth0ダッシュボードにSMS接続のユーザーが存在し、SPAクライアントにSMS接続が有効であることを確認しました。Auth0.jsが私にペイロードの検証エラーを出すのはなぜですか?パスワードなし/確認で「有効なスキーマはありませんでした」と「必須のプロパティが見つかりませんでしたか?
エラー:
https://localhost:9001/auth/callback#error=access_denied&error_description=
Payload%20validation%20error%253A%20'None%20of%20the%20valid%20schemas%20were%20met'
.%20Inner%20errors%253A%20%5B%20Payload%20validation%20error%253A%20'Missing%20required%20property%253A%20blocked'
.%20(also)%20Payload%20validation%20error%253A%20'Missing%20required%20property%253A%20email_verified'
.%20(also)%20Payload%20validation%20error%253A%20'Missing%20required%20property%253A%20email'
.%20(also)%20Payload%20validation%20error%253A%20'Missing%20required%20property%253A%20verify_email'
.%20(also)%20Payload%20validation%20error%253A%20'Missing%20required%20property%253A%20phone_number'
.%20(also)%20Payload%20validation%20error%253A%20'Missing%20required%20property%253A%20phone_verified'
.%20(also)%20Payload%20validation%20error%253A%20'Missing%20required%20property%253A%20verify_phone_number'
.%20(also)%20Payload%20validation%20error%253A%20'Missing%20required%20property%253A%20password'
.%20(also)%20Payload%20validation%20error%253A%20'Missing%20required%20property%253A%20verify_password'
.%20(also)%20Payload%20validation%20error%253A%20'Missing%20required%20property%253A%20user_metadata'
.%20(also)%20Payload%20validation%20error%253A%20'Missing%20required%20property%253A%20app_metadata'
.%20(also)%20Payload%20validation%20error%253A%20'Missing%20required%20property%253A%20username'
.%20(also)%20Payload%20validation%20error%253A%20'Missing%20required%20property%253A%20client_id'
.%20(also)%20Payload%20validation%20error%253A%20'Missing%20required%20property%253A%20groups'
.%20%5D.&state=statehash
Auth0初期化:
this.auth0 = new auth0.WebAuth({
audience: `https://${authSettings.domain}/userinfo`,
clientID: authSettings.checkoutClientId,
domain: authSettings.domain,
redirectUri: authSettings.checkoutCallbackUrl,
responseType: 'token id_token',
scope: 'openid email profile'
});
パスワードなしスタート:
this.auth0.passwordlessStart({
connection: 'sms',
send: 'code',
phoneNumber: phoneNumber,
authParams: {
responseType: 'token id_token',
scope: 'openid email profile'
}
}
のパスワードなしには確認します。
this.auth0.passwordlessVerify({
connection: 'sms',
phoneNumber: phoneNumber,
verificationCode: confirmationCode,
type: 'sms',
authParams: {
responseType: 'token id_token',
scope: 'openid email profile'
}
}
を「行方不明に必要なパラメータは、」でも、検証/パスワードなしの呼び出しのために意味がありません。