办公室365 SSO SAML点网的Web应用程序集成
问题描述:
办公室是否提供365 SAML SSO?
要求:我从我的web应用程序,我需要登录到我的Office 365帐户(SSO)和它再次重定向回我的web应用程序一个asp.net web应用。
办公室365有可能吗?
答
如果你想在Web应用程序登录集成在&注销与Azure的广告,我们可以通过使用下面的代码OWIN认证管道:
public void ConfigureAuth(IAppBuilder app)
{
app.SetDefaultSignInAsAuthenticationType(CookieAuthenticationDefaults.AuthenticationType);
app.UseCookieAuthentication(new CookieAuthenticationOptions());
app.UseOpenIdConnectAuthentication(
new OpenIdConnectAuthenticationOptions
{
ClientId = clientId,
Authority = authority,
PostLogoutRedirectUri = postLogoutRedirectUri,
});
}
我们需要注册与Azure的应用AD获取客户端ID。更多的细节你可以参考here。