Class RepositoryUserNameTokenHandler
Represents a custom UserNameSecurityTokenHandler which authenticates token's username/password against Repository user store and issues claims containing user name and authentication type.
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 | 
|---|---|
| Boolean | 
Methods
ValidateToken(SecurityToken)
Validates provided user name token and issues claims.
Declaration
public override ReadOnlyCollection<ClaimsIdentity> ValidateToken(SecurityToken token)
  Parameters
| Type | Name | Description | 
|---|---|---|
| SecurityToken | token | User name token that needs to be validated.  | 
      
Returns
| Type | Description | 
|---|---|
| ReadOnlyCollection<ClaimsIdentity> | Collection of claims presented in provided token.  |