pub struct JwtBearerResolver { /* private fields */ }Implementations§
Source§impl JwtBearerResolver
impl JwtBearerResolver
pub fn from_inline_json( config: JwtConfig, jwks_json: &str, ) -> Result<JwtBearerResolver, String>
pub fn from_url( config: JwtConfig, url: String, cache_ttl_secs: u64, ) -> JwtBearerResolver
Trait Implementations§
Source§impl AuthResolver for JwtBearerResolver
impl AuthResolver for JwtBearerResolver
fn name(&self) -> &str
fn resolve<'life0, 'life1, 'async_trait>(
&'life0 self,
metadata: &'life1 MetadataMap,
) -> Pin<Box<dyn Future<Output = Result<Option<ResolvedIdentity>, AuthError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
JwtBearerResolver: 'async_trait,
Auto Trait Implementations§
impl !Freeze for JwtBearerResolver
impl !RefUnwindSafe for JwtBearerResolver
impl !UnwindSafe for JwtBearerResolver
impl Send for JwtBearerResolver
impl Sync for JwtBearerResolver
impl Unpin for JwtBearerResolver
impl UnsafeUnpin for JwtBearerResolver
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request