Class PassThroughUserNameTokenHandler
Represents a pass-through System.IdentityModel.Tokens.UserNameSecurityTokenHandler which issues claims containing user name and authentication type.
Inheritance
System.Object
PassThroughUserNameTokenHandler
Namespace: Nevatech.Vsb.Repository.Security
Assembly: Nevatech.Vsb.Repository.dll
Syntax
public sealed class PassThroughUserNameTokenHandler : UserNameSecurityTokenHandler
Constructors
PassThroughUserNameTokenHandler()
Declaration
public PassThroughUserNameTokenHandler()
Properties
CanValidateToken
Gets flag indicating that handled can validate security token.
Declaration
public override bool CanValidateToken { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
ValidateToken(SecurityToken)
Validates provided user name token and issues claims.
Declaration
public override ReadOnlyCollection<ClaimsIdentity> ValidateToken(SecurityToken token)
Parameters
Type | Name | Description |
---|---|---|
System.IdentityModel.Tokens.SecurityToken | token | User name token that needs to be validated. |
Returns
Type | Description |
---|---|
System.Collections.ObjectModel.ReadOnlyCollection<System.Security.Claims.ClaimsIdentity> | Collection of claims presented in provided token. |