Class AuthenticationBuilderExtensions
Extension methods to configure authentication support.
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Microsoft.Extensions.DependencyInjection
Assembly: IRM.AspNetCore.Identity.UI.dll
Syntax
public static class AuthenticationBuilderExtensions
Methods
AddMicrosoftAzureAd(AuthenticationBuilder, String, String, Action<OpenIdConnectOptions>, String, String)
Adds an Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectHandler configured to use Microsoft Azure AD with default handling for a number of scenarios.
Declaration
public static AuthenticationBuilder AddMicrosoftAzureAd(this AuthenticationBuilder builder, string clientId, string clientSecret = null, Action<OpenIdConnectOptions> configureOptions = null, string authenticationScheme = "Microsoft", string displayName = "Microsoft")
Parameters
Microsoft.AspNetCore.Authentication.AuthenticationBuilder
builder
The Microsoft.AspNetCore.Authentication.AuthenticationBuilder. |
String
clientId
The client id. |
String
clientSecret
The client secret. |
System.Action<OpenIdConnectOptions>
configureOptions
A delegate to configure or change additional OpenIdConnectOptions. |
String
authenticationScheme
The authentication scheme. |
String
displayName
A display name for the authentication handler. |
Returns
Microsoft.AspNetCore.Authentication.AuthenticationBuilder
The Microsoft.AspNetCore.Authentication.AuthenticationBuilder. |