Azure-Samples / active-directory-dotnet-webapp-webapi-openidconnect-aspnetcore

An ASP.NET Core web application that authenticates Azure AD users and calls a web API using OAuth 2.0 access tokens.
119 stars 97 forks source link

Update sample to beta 4 #2

Closed npnelson closed 6 years ago

npnelson commented 9 years ago

Specifically (for now), I am interested in the change to

app.UseOAuthBearerAuthentication(options =>
            {
                options.Audience = Configuration.Get("AzureAd:Audience");
                options.Authority = String.Format(Configuration.Get("AzureAd:AadInstance"), Configuration.Get("AzureAd:Tenant"));
            });

I know that it is now UseOAuthAuthentication and I think I have to import the Microsoft.AspNet.Builder namespace, but the parameters/options names have changed and I'm not sure what maps to what.

npnelson commented 9 years ago

Just wanted to correct myself - It is still UseOAuthBearerAuthentication with the same signature and options as beta3 but that got split out into a new package for beta4 Microsoft.AspNet.Authentication.OAuthBearer

jmprieur commented 6 years ago

updated to ASP.NET Core 2.0