Azure AD B2C+Nuxt:什么是重定向 URI?
Azure AD B2C+Nuxt: What is redirect URI?
我打算在我的 Nuxt 应用程序中使用 Azure AD B2C。
我正在按照本教程注册该应用程序:
https://docs.microsoft.com/en-us/azure/active-directory-b2c/tutorial-register-applications?tabs=app-reg-ga
我不明白重定向URI的解释:
Under Redirect URI, select Web, and then enter https://jwt.ms in the URL text box.
The redirect URI is the endpoint to which the user is sent by the authorization server (Azure AD B2C, in this case) after completing its interaction with the user, and to which an access token or authorization code is sent upon successful authorization. In a production application, it's typically a publicly accessible endpoint where your app is running, like https://contoso.com/auth-response. For testing purposes like this tutorial, you can set it to https://jwt.ms, a Microsoft-owned web application that displays the decoded contents of a token (the contents of the token never leave your browser). During app development, you might add the endpoint where your application listens locally, like https://localhost:5000. You can add and modify redirect URIs in your registered applications at any time.
重定向时,页面是否重新加载?我想防止重新加载和页面转换。如果用户单击 https://example.com/some-page
处的登录按钮,我希望用户留在该页面上,https://example.com/some-page
。
在 Nuxt 案例中,redirect 的值是多少 URL?
查看说明,它看起来像这样 URL,用户将在成功登录后被发送到。
就像 Auth0 登录表单一样,它将等待您的凭据,然后将您发送到您应用程序的常用路径。
因此,您应该瞄准您的 Azure AD B2C
仪表板并设置 URL,您希望每个人在登录完成后被重定向到。
这里没有特定于 Nuxt 的东西,因为重定向几乎 given/done 由服务完成。
我打算在我的 Nuxt 应用程序中使用 Azure AD B2C。
我正在按照本教程注册该应用程序: https://docs.microsoft.com/en-us/azure/active-directory-b2c/tutorial-register-applications?tabs=app-reg-ga
我不明白重定向URI的解释:
Under Redirect URI, select Web, and then enter https://jwt.ms in the URL text box. The redirect URI is the endpoint to which the user is sent by the authorization server (Azure AD B2C, in this case) after completing its interaction with the user, and to which an access token or authorization code is sent upon successful authorization. In a production application, it's typically a publicly accessible endpoint where your app is running, like https://contoso.com/auth-response. For testing purposes like this tutorial, you can set it to https://jwt.ms, a Microsoft-owned web application that displays the decoded contents of a token (the contents of the token never leave your browser). During app development, you might add the endpoint where your application listens locally, like https://localhost:5000. You can add and modify redirect URIs in your registered applications at any time.
重定向时,页面是否重新加载?我想防止重新加载和页面转换。如果用户单击 https://example.com/some-page
处的登录按钮,我希望用户留在该页面上,https://example.com/some-page
。
在 Nuxt 案例中,redirect 的值是多少 URL?
查看说明,它看起来像这样 URL,用户将在成功登录后被发送到。
就像 Auth0 登录表单一样,它将等待您的凭据,然后将您发送到您应用程序的常用路径。
因此,您应该瞄准您的 Azure AD B2C
仪表板并设置 URL,您希望每个人在登录完成后被重定向到。
这里没有特定于 Nuxt 的东西,因为重定向几乎 given/done 由服务完成。