Skip to content

Commit 29f4c75

Browse files
committed
Adding Commnet
1 parent 62c6a18 commit 29f4c75

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

TodoListService/App_Start/Startup.Auth.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ public void ConfigureAuth(IAppBuilder app)
2424
ValidateIssuer = false,
2525
};
2626

27+
// NOTE: The usual WindowsAzureActiveDirectoryBearerAuthenticaitonMiddleware uses a
28+
// metadata endpoint which is not supported by the v2.0 endpoint. Instead, this
29+
// OpenIdConenctCachingSecurityTokenProvider can be used to fetch & use the OpenIdConnect
30+
// metadata document.
31+
2732
app.UseOAuthBearerAuthentication(new OAuthBearerAuthenticationOptions
2833
{
2934
AccessTokenFormat = new Microsoft.Owin.Security.Jwt.JwtFormat(tvps, new OpenIdConnectCachingSecurityTokenProvider("https://login.microsoftonline.com/common/v2.0/.well-known/openid-configuration")),

0 commit comments

Comments
 (0)