如何为 Azure SSO 实施 "switch account" button/dialog?
How do I implement a "switch account" button/dialog for Azure SSO?
我有一个 ASP.NET MVC 应用程序,它使用 Microsoft.Owin.Security.OpenIdConnect 实现了 Azure 单一登录(Startup.cs/.vb 文件)...
如何实现 "Switch account" a.k.a。 "Sign in with a different account"link?我似乎找不到任何相关信息。
亲切的问候,
莱拉
在登录 url 中设置 prompt=login
,强制用户在该请求中输入其凭据,从而取消单点登录。
注意:如果要切换目录,记得在你在azure ad中注册的应用中点击Supported account types
下的Accounts in any organizational directory (Any Azure AD directory - Multitenant)
。
GET https://login.microsoftonline.com/{tenant}/oauth2/authorize?
client_id=6731de76-14a6-49ae-97bc-6eba6914391e
&response_type=id_token
&redirect_uri=http%3A%2F%2Flocalhost%3a12345
&response_mode=form_post
&scope=openid
&state=12345
&nonce=7362CAEA-9CA5-4B43-9BA3-34D7C303EBA7
&prompt=login
参考此tutorial发送登录请求。
我有一个 ASP.NET MVC 应用程序,它使用 Microsoft.Owin.Security.OpenIdConnect 实现了 Azure 单一登录(Startup.cs/.vb 文件)...
如何实现 "Switch account" a.k.a。 "Sign in with a different account"link?我似乎找不到任何相关信息。
亲切的问候, 莱拉
在登录 url 中设置 prompt=login
,强制用户在该请求中输入其凭据,从而取消单点登录。
注意:如果要切换目录,记得在你在azure ad中注册的应用中点击Supported account types
下的Accounts in any organizational directory (Any Azure AD directory - Multitenant)
。
GET https://login.microsoftonline.com/{tenant}/oauth2/authorize?
client_id=6731de76-14a6-49ae-97bc-6eba6914391e
&response_type=id_token
&redirect_uri=http%3A%2F%2Flocalhost%3a12345
&response_mode=form_post
&scope=openid
&state=12345
&nonce=7362CAEA-9CA5-4B43-9BA3-34D7C303EBA7
&prompt=login
参考此tutorial发送登录请求。