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§
Required Methods§
Sourcefn 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 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.
Sourcefn 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,
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.