Trait AuthlyConnect

Source
pub trait AuthlyConnect:
    Send
    + Sync
    + 'static {
    type SecureStream: Stream<Item = Result<Frame, Status>> + Send + 'static;
    type MutuallySecureStream: Stream<Item = Result<Frame, Status>> + Send + 'static;

    // Required methods
    fn secure<'life0, 'async_trait>(
        &'life0 self,
        request: Request<Streaming<Frame>>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<Self::SecureStream>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn mutually_secure<'life0, 'async_trait>(
        &'life0 self,
        request: Request<Streaming<Frame>>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<Self::MutuallySecureStream>, 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 AuthlyConnectServer.

Required Associated Types§

Source

type SecureStream: Stream<Item = Result<Frame, Status>> + Send + 'static

Server streaming response type for the Secure method.

Source

type MutuallySecureStream: Stream<Item = Result<Frame, Status>> + Send + 'static

Server streaming response type for the MutuallySecure method.

Required Methods§

Source

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

Make a secure tunnel to the Authly instance. This tunnel mode does not try to verify client identity.

Source

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

Make a mutually secure tunnel to the Authly instance. The client must verify its identity with a signed certificate.

Implementors§