Azure AD B2C:请求中的重定向 URI 与为 OAuth 客户端授权的不匹配
Azure AD B2C: The redirect URI in the request, does not match the ones authorized for the OAuth client
我正在尝试 Set up sign-up and sign-in with a Google account using Azure Active Directory B2C。调试应用程序时,我可以使用我的电子邮件进行注册。但是我无法使用 Google 登录,出现 The redirect URI in the request, does not match the ones authorized for the OAuth client
错误。
Appsettings.json:
"AzureADB2C": {
"Instance": "https://InstaTranscribe.b2clogin.com/",
"Domain": "InstaTranscribe.onmicrosoft.com",
"ClientId": "<SomeClientId>",
"SignUpSignInPolicyId": "B2C_1_SignUpSignInUserFlow",
"ResetPasswordPolicyId": "B2C_1_PasswordResetUserFlow",
"EditProfilePolicyId": "B2C_1_ProfileEditingUserFlow",
"CallbackPath": "/signin-oidc"
}
我错过了什么?
Authorization Error
Error 400: redirect_uri_mismatch
The redirect URI in the request, https://instatranscribe.b2clogin.com/instatranscribe.onmicrosoft.com/oauth2/authresp, does not match the ones authorized for the OAuth client. To update the authorized redirect URIs, visit: https://console.developers.google.com/apis/credentials/oauthclient/${your_client_id}?project=${your_project_number}
您需要将在错误消息中看到的 URL 粘贴到 Google 应用程序设置中的“授权重定向 URI”。一个就够了
我正在尝试 Set up sign-up and sign-in with a Google account using Azure Active Directory B2C。调试应用程序时,我可以使用我的电子邮件进行注册。但是我无法使用 Google 登录,出现 The redirect URI in the request, does not match the ones authorized for the OAuth client
错误。
Appsettings.json:
"AzureADB2C": {
"Instance": "https://InstaTranscribe.b2clogin.com/",
"Domain": "InstaTranscribe.onmicrosoft.com",
"ClientId": "<SomeClientId>",
"SignUpSignInPolicyId": "B2C_1_SignUpSignInUserFlow",
"ResetPasswordPolicyId": "B2C_1_PasswordResetUserFlow",
"EditProfilePolicyId": "B2C_1_ProfileEditingUserFlow",
"CallbackPath": "/signin-oidc"
}
我错过了什么?
Authorization Error
Error 400: redirect_uri_mismatch
The redirect URI in the request, https://instatranscribe.b2clogin.com/instatranscribe.onmicrosoft.com/oauth2/authresp, does not match the ones authorized for the OAuth client. To update the authorized redirect URIs, visit: https://console.developers.google.com/apis/credentials/oauthclient/${your_client_id}?project=${your_project_number}
您需要将在错误消息中看到的 URL 粘贴到 Google 应用程序设置中的“授权重定向 URI”。一个就够了