pub trait AuthService:
Send
+ Sync
+ 'static {
// Required methods
fn generate_auth_challenge<'life0, 'async_trait>(
&'life0 self,
request: Request<GenerateAuthChallengeRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GenerateAuthChallengeResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn generate_auth_tokens<'life0, 'async_trait>(
&'life0 self,
request: Request<GenerateAuthTokensRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GenerateAuthTokensResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn refresh_access_token<'life0, 'async_trait>(
&'life0 self,
request: Request<RefreshAccessTokenRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<RefreshAccessTokenResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Generated trait containing gRPC methods that should be implemented for use with AuthServiceServer.
Required Methods§
Sourcefn generate_auth_challenge<'life0, 'async_trait>(
&'life0 self,
request: Request<GenerateAuthChallengeRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GenerateAuthChallengeResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn generate_auth_challenge<'life0, 'async_trait>(
&'life0 self,
request: Request<GenerateAuthChallengeRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GenerateAuthChallengeResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
/ Returns a challenge, client is expected to sign this challenge with an appropriate keypair in order to obtain access tokens.
Sourcefn generate_auth_tokens<'life0, 'async_trait>(
&'life0 self,
request: Request<GenerateAuthTokensRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GenerateAuthTokensResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn generate_auth_tokens<'life0, 'async_trait>(
&'life0 self,
request: Request<GenerateAuthTokensRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GenerateAuthTokensResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
/ Provides the client with the initial pair of auth tokens for API access.
Sourcefn refresh_access_token<'life0, 'async_trait>(
&'life0 self,
request: Request<RefreshAccessTokenRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<RefreshAccessTokenResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn refresh_access_token<'life0, 'async_trait>(
&'life0 self,
request: Request<RefreshAccessTokenRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<RefreshAccessTokenResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
/ Call this method with a non-expired refresh token to obtain a new access token.