public EsiTokenInfo(IEsiTokenResponse AccessToken, IEsiTokenVerification TokenVerification, EsiAuthClient Client) { this.tokenAccessInfo = AccessToken; this.tokenVerification = TokenVerification; this.AuthClient = Client; }
public static bool CheckScope(this IEsiTokenVerification token, string scope) { return(string.IsNullOrEmpty(scope) || token.Scopes.ToLower().Contains(scope.ToLower())); }
public EsiTokenInfo(IEsiTokenResponse AccessToken, IEsiTokenVerification TokenVerification) { this.tokenAccessInfo = AccessToken; this.tokenVerification = TokenVerification; }
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); }