JwtSecurityTokenHandler.CreateActorValue(ClaimsIdentity) Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
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 ).