[英]How to get access token from Azure AD using Windows Integrated login from ASP.NET MVC?
Is there any way to get access token from Azure AD using Windows Integrated login from ASP.NET MVC? 是否可以通过ASP.NET MVC使用Windows Integrated登录从Azure AD获取访问令牌? I've just tried to use ADAL to login providing tenant, client credentials (id and secret) and user login but it responds that "Managed users must provide password".
我刚刚尝试使用ADAL登录以提供租户,客户端凭据(ID和机密)和用户登录,但是它回答“受管用户必须提供密码”。
That's an organizational account and I don't want to show consent screen to the user if they even need to provide password. 这是一个组织帐户,如果他们甚至需要提供密码,我也不想向用户显示同意屏幕。
You should be able to do this using OpenID Connect. 您应该能够使用OpenID Connect执行此操作。 I believe you can use the OpenID Connect sign-in request by decorating a class or method with the [Authorize] attribute.
我相信您可以通过使用[Authorize]属性装饰类或方法来使用OpenID Connect登录请求。 See this document for more details to see if it helps.
有关更多详细信息,请参阅本文档,以了解是否有帮助。 https://azure.microsoft.com/en-us/resources/samples/active-directory-dotnet-native-headless/
https://azure.microsoft.com/en-us/resources/samples/active-directory-dotnet-native-headless/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.