JwtSecurityTokenHandler.CreateActorValue(ClaimsIdentity) Método
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
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 ).