Class RepositoryUserNameTokenHandler
Represents a custom System.IdentityModel.Tokens.UserNameSecurityTokenHandler which authenticates token's username/password against Repository user store and issues claims containing user name and authentication type.
Inheritance
System.Object
RepositoryUserNameTokenHandler
Namespace: Nevatech.Vsb.Repository.Security
Assembly: Nevatech.Vsb.Repository.dll
Syntax
public sealed class RepositoryUserNameTokenHandler : UserNameSecurityTokenHandler
Constructors
RepositoryUserNameTokenHandler()
Declaration
public RepositoryUserNameTokenHandler()
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. |