Skip to content

duizendnegen/azure-ad-bearer-authentication

Repository files navigation

azure-ad-bearer-authentication

Azure Active Directory Bearer Authentication for .NET Core

Usage

in your Startup.cs, in ConfigureServices (replacing these values with those provided through Azure AD):

app.UseAzureADBearerAuthentication(new AzureADAuthenticationOptions
{
    Audience = "1234ab-5678",
    AzureADInstance = "https://login.microsoftonline.com/", // or other instances
    Tenant = "your-tenant.com"
});

in your Startup.cs, in Configure:

app.UseAuthentication();

About

Azure Active Directory Bearer Authentication for .NET Core

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages