Created
July 20, 2016 20:51
-
-
Save shawnweisfeld/505d049eafae551e800d826911b8ee64 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app.UseOpenIdConnectAuthentication( | |
new OpenIdConnectAuthenticationOptions | |
{ | |
ClientId = clientId, | |
Authority = $"{aadInstanceGov}common", | |
PostLogoutRedirectUri = postLogoutRedirectUri, | |
AuthenticationType = "AADC", | |
TokenValidationParameters = new System.IdentityModel.Tokens.TokenValidationParameters | |
{ | |
// instead of using the default validation (validating against a single issuer value, as we do in line of business apps), | |
// we inject our own multitenant validation logic | |
ValidateIssuer = false, | |
}, | |
}); | |
app.UseOpenIdConnectAuthentication( | |
new OpenIdConnectAuthenticationOptions | |
{ | |
ClientId = clientIdGov, | |
Authority = $"{aadInstanceGov}common", | |
PostLogoutRedirectUri = postLogoutRedirectUri, | |
AuthenticationType = "AADG", | |
TokenValidationParameters = new System.IdentityModel.Tokens.TokenValidationParameters | |
{ | |
// instead of using the default validation (validating against a single issuer value, as we do in line of business apps), | |
// we inject our own multitenant validation logic | |
ValidateIssuer = false, | |
}, | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment