gpt4 book ai didi

asp.net-mvc - Azure Active Directory、OWIN 和 ASP .NET MVC

转载 作者:行者123 更新时间:2023-12-03 05:08:55 25 4
gpt4 key购买 nike

VS 2013 中的库存模板不将 OWIN 与 Active Directory 配置结合使用。有谁有一个很好的例子来说明我应该如何将其与 OWIN 连接起来?我真的不想混合范例,并且想使用 OWIN 来完成所有事情。我必须使用 OpenIDConnect 包吗?

谢谢

最佳答案

Azure AD 团队已在 Github 上发布了大量示例,您可以在此处找到:https://github.com/AzureADSamples 。其中,我相信您可能会对以下两个感兴趣:

https://github.com/AzureADSamples/WebApp-MultiTenant-OpenIdConnect-DotNet

This sample shows how to build a multi-tenant .Net MVC web application that uses OpenID Connect to sign up and sign in users from any Azure Active Directory tenant, using the ASP.Net OpenID Connect OWIN middleware and the Active Directory Authentication Library (ADAL) for .NET.

https://github.com/AzureADSamples/WebApp-WebAPI-OpenIDConnect-DotNet

This sample shows how to build an MVC web application that uses Azure AD for sign-in using the OpenID Connect protocol, and then calls a web API under the signed-in user's identity using tokens obtained via OAuth 2.0. This sample uses the OpenID Connect ASP.Net OWIN middleware and ADAL .Net.

关于asp.net-mvc - Azure Active Directory、OWIN 和 ASP .NET MVC,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28486588/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com