JwtSecurityTokenHandler.CreateActorValue(ClaimsIdentity) Método

Definição

Cria o 'valor' para a declaraçã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.

Retornos

String representando o ator.

Exceções

'actor' é nulo.

Comentários

Se BootstrapContext não for nulo:

Se 'type' for 'string', retorne como cadeia de caracteres.

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

se 'JwtSecurityToken.RawData' != null, retorne RawData.

else return WriteToken(SecurityToken).

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

padrão: WriteToken(SecurityToken) new ( JwtSecurityToken( ator. Declarações ).

Aplica-se a