【发布时间】:2021-06-29 13:44:18
【问题描述】:
我正在尝试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}
【问题讨论】:
标签: azure blazor azure-ad-b2c blazor-server-side