pub struct GrpcTokenApi { /* private fields */ }Expand description
TokenApi over the gRPC AuthService of the broker.
See the module docs for how it is used with a TokenManager.
Implementations§
Source§impl GrpcTokenApi
impl GrpcTokenApi
Trait Implementations§
Source§impl TokenApi for GrpcTokenApi
impl TokenApi for GrpcTokenApi
Source§fn auth<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
secret: &'life1 str,
source_app_id: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<String, FinamError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn auth<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
secret: &'life1 str,
source_app_id: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<String, FinamError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Exchanges the API secret for a JWT (
AuthService.Auth). Read moreAuto Trait Implementations§
impl !Freeze for GrpcTokenApi
impl !RefUnwindSafe for GrpcTokenApi
impl !UnwindSafe for GrpcTokenApi
impl Send for GrpcTokenApi
impl Sync for GrpcTokenApi
impl Unpin for GrpcTokenApi
impl UnsafeUnpin for GrpcTokenApi
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].