我有一个Angular应用程序: https://abc.xyz.com 托管在Azure App Service中。这具有使用单独的Azure应用服务和不同URL托管的后端API: https://xxx.yyy.com 。两个端点均在Azuread注册。只有身份验证的用户才能登录应用程序,并且对API的所有请求都必须通过前端服务层的标头传递令牌。
假设应用程序中有一条路线: https://abc.xyz.com/# !/test/100
现在,当我打开一个新的浏览器实例并尝试上述URL时,它要求我遵循Azuread身份验证所需的所有步骤,然后将我导航到着陆页: https://xyz.abc.com 代替 https://abc.xyz.com/#!/test/100
在这种情况下,我希望用户可以导航到请求的路线: https://abc.xyz.com/#!/test/100 而不是将他带到着陆点页面: https://abc.xyz.com/ 发布身份验证过程。
谁能在这种情况下提供指导?
I have a angular application with URL: https://abc.xyz.com hosted within Azure App Service. This has a backend API hosted using a separate Azure App Service and different URL: https://xxx.yyy.com. Both the endpoints are registered with AzureAD. Only authenticated users can login into the application and all the requests to the API has to pass the token via the header from the frontend services layer.
Lets say there is a route within the application: https://abc.xyz.com/#!/test/100
Now when I open a new browser instance and try the above URL, it asks me to follow all the steps required for AzureAD authentication and navigates me to the landing page:https://xyz.abc.com instead of https://abc.xyz.com/#!/test/100
In this case I am expecting user to be navigated to the requested route : https://abc.xyz.com/#!/test/100 instead of taking him to the landing page: https://abc.xyz.com/ post authentication process.
Can anyone provide their guidance regarding this scenario?
发布评论
评论(1)
请检查以下几点是否有一些想法。
页IE;应用程序注册过程中提到的重定向URL,
当微软身份基本上检查状态是否受到保护
在将位置更改为其他路径之前,通过Azure AD。
页面重定向到所需的路径预览。
广告门户。
Please check if below points give some idea.
page i.e; the redirect url mentioned in the app registration process,
as microsoft identity basically checks the state whether is protected
by Azure AD before the location is changed to other path than that.
securing your Angular app with MSAL - Waldek Mastykarz to try the
page redirect to the path previews required.
ad portal.