public async Task RevokeTokenAsync(string evessokey, string token, RevokeTokenType type) { if (string.IsNullOrEmpty(token) || string.IsNullOrEmpty(evessokey)) { throw new EsiException("Code or EVESSOKey is null or empty"); } EsiRevokeTokenType mapperType = _mapper.Map <EsiRevokeTokenType>(type); string ssoData = string.Empty; switch (mapperType) { case EsiRevokeTokenType.AccessToken: ssoData = "token_type_hint=access_token&token="; break; case EsiRevokeTokenType.RefreshToken: ssoData = "token_type_hint=refresh_token&token="; break; } ssoData += token; await RevokeOauthTokenAsync(evessokey, ssoData); }
public Builder SetTokenTypeHint(RevokeTokenType tokenTypeHint) { this.tokenTypeHint = tokenTypeHint; return(this); }
public async Task RevokeTokenAsync(string evessokey, string token, RevokeTokenType type) { await _internalAuthentication.RevokeTokenAsync(evessokey, token, type); }
public void RevokeToken(string evessokey, string token, RevokeTokenType type) { _internalAuthentication.RevokeToken(evessokey, token, type); }