Idioma

JwtSecurityTokenHandler.CreateActorValue(ClaimsIdentity) Método

Definição

Cria o 'valor' para a reivindicação do ator: { actort, 'value' }

protected virtual string CreateActorValue(System.Security.Claims.ClaimsIdentity actor);
abstract member CreateActorValue : System.Security.Claims.ClaimsIdentity -> string
override this.CreateActorValue : System.Security.Claims.ClaimsIdentity -> string
Protected Overridable Function CreateActorValue (actor As ClaimsIdentity) As String

Parâmetros

actor
ClaimsIdentity

ClaimsIdentity como ator.

Devoluções

String representando o ator.

Exceções

'actor' é nulo.

Observações

Se BootstrapContext não for nulo:

Se 'tipo' for 'string', retorne como string.

se 'type' é 'BootstrapContext' e 'BootstrapContext.SecurityToken' é 'JwtSecurityToken'

if 'JwtSecurityToken.RawData' != null, return RawData.

caso contrário, regressar WriteToken(SecurityToken).

se 'BootstrapContext.Token' != nulo, devolve 'Token'.

padrão: WriteToken(SecurityToken) new ( JwtSecurityToken( actor. Reivindicações ).

Aplica-se a