AuthenticationOptions.AddScheme Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AddScheme(String, Action<AuthenticationSchemeBuilder>) |
Adds an AuthenticationScheme. |
AddScheme<THandler>(String, String) |
Adds an AuthenticationScheme. |
AddScheme(String, Action<AuthenticationSchemeBuilder>)
- Source:
- AuthenticationOptions.cs
- Source:
- AuthenticationOptions.cs
- Source:
- AuthenticationOptions.cs
Adds an AuthenticationScheme.
public:
void AddScheme(System::String ^ name, Action<Microsoft::AspNetCore::Authentication::AuthenticationSchemeBuilder ^> ^ configureBuilder);
public void AddScheme (string name, Action<Microsoft.AspNetCore.Authentication.AuthenticationSchemeBuilder> configureBuilder);
member this.AddScheme : string * Action<Microsoft.AspNetCore.Authentication.AuthenticationSchemeBuilder> -> unit
Public Sub AddScheme (name As String, configureBuilder As Action(Of AuthenticationSchemeBuilder))
Parameters
- name
- String
The name of the scheme being added.
- configureBuilder
- Action<AuthenticationSchemeBuilder>
Configures the scheme.
Applies to
AddScheme<THandler>(String, String)
- Source:
- AuthenticationOptions.cs
- Source:
- AuthenticationOptions.cs
- Source:
- AuthenticationOptions.cs
Adds an AuthenticationScheme.
public:
generic <typename THandler>
where THandler : Microsoft::AspNetCore::Authentication::IAuthenticationHandler void AddScheme(System::String ^ name, System::String ^ displayName);
public void AddScheme<THandler> (string name, string displayName) where THandler : Microsoft.AspNetCore.Authentication.IAuthenticationHandler;
public void AddScheme<THandler> (string name, string? displayName) where THandler : Microsoft.AspNetCore.Authentication.IAuthenticationHandler;
member this.AddScheme : string * string -> unit (requires 'Handler :> Microsoft.AspNetCore.Authentication.IAuthenticationHandler)
Public Sub AddScheme(Of THandler As IAuthenticationHandler) (name As String, displayName As String)
Type Parameters
- THandler
The IAuthenticationHandler responsible for the scheme.
Parameters
- name
- String
The name of the scheme being added.
- displayName
- String
The display name for the scheme.