问题描述
这是我上一个问题的延续 How does Azure AD MutiTenant authentication works?
我想将用户重定向到 Azure AD 多租户身份验证中的 Error/InvalidUser 页面。我正在使用 ASP.Net Webforms。我怎么能这样做?我正在使用以下代码验证 Statup.cs 类中的用户。
TokenValidationParameters = new Microsoft.IdentityModel.Tokens.TokenValidationParameters
{
ValidateIssuer = true,Validissuers = new List<string>()
{
"https://sts.windows.net/XXXXXXXXXX/"
}
// If the app needs access to the entire organization,then add the logic
// of validating the Issuer here.
// IssuerValidator
},
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)