ITokenAcquisition.GetEffectiveAuthenticationScheme(String) 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.
Get the effective authentication scheme based on the context.
public string GetEffectiveAuthenticationScheme (string? authenticationScheme);
abstract member GetEffectiveAuthenticationScheme : string -> string
Public Function GetEffectiveAuthenticationScheme (authenticationScheme As String) As String
Parameters
- authenticationScheme
- String
Proposed authentication scheme.
Returns
Effective authenticationScheme which is the authentication scheme if it's not null, or otherwise OpenIdConnectDefault.AuthenticationScheme if called from a web app, and JwtBearerDefault.AuthenticationScheme if called from a web API.