Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class Microsoft.​AspNetCore.​Authentication.​AuthenticationBuilder

Assembly: Microsoft.AspNetCore.Authentication

Inheritance: object → AuthenticationBuilder

Used to configure authentication

Properties

The services being configured.

Methods

AddScheme​(string authenticationScheme, string displayName, System.​Action?<​TOptions> configureOptions)
Adds a <see cref="T:Microsoft.AspNetCore.Authentication.AuthenticationScheme" /> which can be used by <see cref="T:Microsoft.AspNetCore.Authentication.IAuthenticationService" /> .
Returns The builder.
authenticationScheme The name of this scheme.
displayName The display name of this scheme.
configureOptions Used to configure the scheme options.
AddScheme​(string authenticationScheme, System.​Action?<​TOptions> configureOptions)
Adds a <see cref="T:Microsoft.AspNetCore.Authentication.AuthenticationScheme" /> which can be used by <see cref="T:Microsoft.AspNetCore.Authentication.IAuthenticationService" /> .
Returns The builder.
authenticationScheme The name of this scheme.
configureOptions Used to configure the scheme options.
AddRemoteScheme​(string authenticationScheme, string displayName, System.​Action?<​TOptions> configureOptions)
Adds a <see cref="T:Microsoft.AspNetCore.Authentication.RemoteAuthenticationHandler`1" /> based <see cref="T:Microsoft.AspNetCore.Authentication.AuthenticationScheme" /> that supports remote authentication which can be used by <see cref="T:Microsoft.AspNetCore.Authentication.IAuthenticationService" /> .
Returns The builder.
authenticationScheme The name of this scheme.
displayName The display name of this scheme.
configureOptions Used to configure the scheme options.
AddPolicyScheme​(string authenticationScheme, string displayName, System.​Action<​PolicySchemeOptions> configureOptions)
Adds a <see cref="T:Microsoft.AspNetCore.Authentication.PolicySchemeHandler" /> based authentication handler which can be used to redirect to other authentication schemes.
Returns The builder.
authenticationScheme The name of this scheme.
displayName The display name of this scheme.
configureOptions Used to configure the scheme options.
public bool
Equals​(object obj)
Inherited from object
protected void
Finalize​()
Inherited from object
public int
GetHashCode​()
Inherited from object
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object
public string
ToString​()
Inherited from object