Beispiel #1
0
 public EsiTokenInfo(IEsiTokenResponse AccessToken, IEsiTokenVerification TokenVerification, EsiAuthClient Client)
 {
     this.tokenAccessInfo   = AccessToken;
     this.tokenVerification = TokenVerification;
     this.AuthClient        = Client;
 }
Beispiel #2
0
 public static bool CheckScope(this IEsiTokenVerification token, string scope)
 {
     return(string.IsNullOrEmpty(scope) || token.Scopes.ToLower().Contains(scope.ToLower()));
 }
Beispiel #3
0
 public EsiTokenInfo(IEsiTokenResponse AccessToken, IEsiTokenVerification TokenVerification)
 {
     this.tokenAccessInfo   = AccessToken;
     this.tokenVerification = TokenVerification;
 }
Beispiel #4
0
 public static IEsiTokenContainer AssignTokenVerification(this IEsiTokenContainer token, IEsiTokenVerification response)
 {
     token.CharacterId        = response.CharacterId;
     token.CharacterName      = response.CharacterName;
     token.CharacterOwnerHash = response.CharacterOwnerHash;
     token.ExpiresOn          = response.ExpiresOn;
     token.Scopes             = response.Scopes;
     token.TokenType          = response.TokenType;
     return(token);
 }