Język

AppServicesAuthenticationTokenAcquisition.GetEffectiveAuthenticationScheme Metoda

Definicja

Uzyskaj skuteczny schemat uwierzytelniania na podstawie kontekstu.

public string GetEffectiveAuthenticationScheme(string? authenticationScheme);
abstract member GetEffectiveAuthenticationScheme : string -> string
override this.GetEffectiveAuthenticationScheme : string -> string
Public Function GetEffectiveAuthenticationScheme (authenticationScheme As String) As String

Parametry

authenticationScheme
String

Proponowany schemat uwierzytelniania.

Zwraca

Skuteczne uwierzytelnianieScheme, który jest schematem uwierzytelniania, jeśli nie ma wartości null, lub w przeciwnym razie OpenIdConnectDefault.AuthenticationScheme, jeśli jest wywoływany z aplikacji internetowej, i JwtBearerDefault.AuthenticationScheme, jeśli jest wywoływany z internetowego interfejsu API.

Implementuje

Dotyczy