C# Class CommanderDemo.Web.TokenService

NOT FOR PROD: This class is only for the demo which integrates, MVC, WebAPI, and FluentScheduler Manages Tokens for provided context data like Username. Store as little as possibly in the token, it can get big and is sent on each request.
Inheritance: ITokenService
Afficher le fichier Open project: Command-R/CommanderDemo

Méthodes publiques

Méthode Description
CreateToken ( object>.IDictionary data ) : string
DeleteToken ( string tokenId ) : void
GetTokenData ( string tokenId ) : object>.IDictionary
TokenService ( Settings settings ) : System

Private Methods

Méthode Description
ParseRoles ( Object roles ) : string[]
TryGet ( object>.IDictionary dict, string key ) : object

Method Details

CreateToken() public méthode

public CreateToken ( object>.IDictionary data ) : string
data object>.IDictionary
Résultat string

DeleteToken() public méthode

public DeleteToken ( string tokenId ) : void
tokenId string
Résultat void

GetTokenData() public méthode

public GetTokenData ( string tokenId ) : object>.IDictionary
tokenId string
Résultat object>.IDictionary

TokenService() public méthode

public TokenService ( Settings settings ) : System
settings Settings
Résultat System