如何为两个应用程序服务使用相同的身份提供商?
我有两个独立的App Services在Azure中托管。其中一个是一个网站(ASP。NET),另一个是网络API。我使用身份验证刀片在第一个Web应用程序(网站)上设置了身份提供商。这迫使用户登录应用程序,然后才能访问任何页面。
我还想在Web API上设置身份验证。当我使用目录中的现有应用程序注册设置身份验证时,我将不再能够从网站访问任何Web API服务。如何将同一设置用于应用程序服务并访问我的服务?
webServices身份验证
I have two separate app services hosted in Azure. One of them is a website (ASP . NET) and the other is a web API. I set up an identity provider on the first web app (website) using the Authentication blade. This forces the user to log in to the application before she can access any pages.
I want to also set up authentication on the web API. When I set up the authentication using an existing app registration in the directory, I am no longer able to access any of the web API services from the website. How can I use the same setup for both the app services and also access my service?
WebServices Authentication
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
时访问了以下错误; Active Directory => App Registrations =>在拥有的应用程序下,单击您的应用程序名称=>单击重定向uris,在添加 下重定向uris
添加带有
/。auth/auth/login/aad/aad/aad/callback
P>的重定向URI后缀,现在可以访问两个应用程序而无需任何错误
In Azure Portal => Active Directory =>App registrations =>Under Owned Applications , click on your application name => click on Redirect URIs, Under Add Redirect URIs
Add the redirect uri suffixed with
/.auth/login/aad/callback
Now Iam able to access both the applications without any errors