Skip to main content

AuthService

Trait AuthService 

Source
pub trait AuthService:
    Send
    + Sync
    + 'static {
    type SubscribeJwtRenewalStream: Stream<Item = Result<SubscribeJwtRenewalResponse, Status>> + Send + 'static;

    // Required methods
    fn auth<'life0, 'async_trait>(
        &'life0 self,
        request: Request<AuthRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<AuthResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn token_details<'life0, 'async_trait>(
        &'life0 self,
        request: Request<TokenDetailsRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<TokenDetailsResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn subscribe_jwt_renewal<'life0, 'async_trait>(
        &'life0 self,
        request: Request<SubscribeJwtRenewalRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<Self::SubscribeJwtRenewalStream>, 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 Associated Types§

Source

type SubscribeJwtRenewalStream: Stream<Item = Result<SubscribeJwtRenewalResponse, Status>> + Send + 'static

Server streaming response type for the SubscribeJwtRenewal method.

Required Methods§

Source

fn auth<'life0, 'async_trait>( &'life0 self, request: Request<AuthRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<AuthResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn token_details<'life0, 'async_trait>( &'life0 self, request: Request<TokenDetailsRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<TokenDetailsResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn subscribe_jwt_renewal<'life0, 'async_trait>( &'life0 self, request: Request<SubscribeJwtRenewalRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<Self::SubscribeJwtRenewalStream>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§