SecurityTokenService.CreateSecurityTokenDescriptor Metoda

Definicja

Tworzy wystąpienie klasy SecurityTokenDescriptor.

protected virtual System.IdentityModel.Tokens.SecurityTokenDescriptor CreateSecurityTokenDescriptor (System.IdentityModel.Protocols.WSTrust.RequestSecurityToken request, System.IdentityModel.Scope scope);

Parametry

request
RequestSecurityToken

Żądanie tokenu przychodzącego.

scope
Scope

Obiekt Scope zwrócony z GetScope(ClaimsPrincipal, RequestSecurityToken)elementu .

Zwraca

Element SecurityTokenDescriptor.

Wyjątki

request to null.

-lub-

scope to null.

Uwagi

Wywoływane podczas wystawiania tokenu po GetScope.

Dotyczy

Produkt Wersje
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1