修改接口
This commit is contained in:
@@ -5,15 +5,9 @@ namespace FutureMailAPI.Services
|
||||
{
|
||||
public interface IOAuthService
|
||||
{
|
||||
Task<ApiResponse<OAuthClientSecretDto>> CreateClientAsync(int userId, OAuthClientCreateDto createDto);
|
||||
Task<ApiResponse<OAuthClientDto>> GetClientAsync(string clientId);
|
||||
Task<ApiResponse<OAuthAuthorizationResponseDto>> AuthorizeAsync(int userId, OAuthAuthorizationRequestDto request);
|
||||
Task<ApiResponse<OAuthTokenResponseDto>> ExchangeCodeForTokenAsync(OAuthTokenRequestDto request);
|
||||
Task<ApiResponse<OAuthTokenResponseDto>> RefreshTokenAsync(OAuthTokenRequestDto request);
|
||||
Task<ApiResponse<bool>> RevokeTokenAsync(string token);
|
||||
Task<ApiResponse<bool>> ValidateTokenAsync(string token);
|
||||
Task<OAuthAccessToken?> GetAccessTokenAsync(string token);
|
||||
Task<OAuthClient?> GetClientByCredentialsAsync(string clientId, string clientSecret);
|
||||
Task<ApiResponse<OAuthTokenResponseDto>> LoginAsync(OAuthLoginDto loginDto);
|
||||
Task<ApiResponse<OAuthTokenResponseDto>> LoginAsync(OAuthLoginRequestDto request);
|
||||
Task<ApiResponse<OAuthTokenResponseDto>> RefreshTokenAsync(OAuthRefreshTokenRequestDto request);
|
||||
Task<bool> RevokeTokenAsync(string accessToken);
|
||||
Task<OAuthToken?> GetTokenAsync(string accessToken);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user