pub struct OAuthProviderRuntime { /* private fields */ }Implementations§
Source§impl OAuthProviderRuntime
impl OAuthProviderRuntime
pub async fn from_config( config: OAuthProviderConfig, ) -> Result<OAuthProviderRuntime, OAuthProviderError>
pub fn http_client(&self) -> &Client
pub async fn metadata( &self, ) -> Result<OAuthProviderMetadata, OAuthProviderError>
pub async fn oidc_provider_metadata( &self, ) -> Result<ProviderMetadata<ExtraProviderMetadata, CoreAuthDisplay, CoreClientAuthMethod, CoreClaimName, CoreClaimType, CoreGrantType, CoreJweContentEncryptionAlgorithm, CoreJweKeyManagementAlgorithm, CoreJsonWebKey, CoreResponseMode, CoreResponseType, CoreSubjectIdentifierType>, OAuthProviderError>
pub async fn jwks( &self, ) -> Result<JsonWebKeySet<CoreJsonWebKey>, OAuthProviderError>
pub async fn refresh_jwks( &self, ) -> Result<OAuthProviderMetadata, OAuthProviderError>
pub async fn refresh_metadata( &self, ) -> Result<OAuthProviderMetadata, OAuthProviderError>
pub async fn introspect( &self, client_id: &str, client_secret: Option<&str>, token: &str, token_type_hint: Option<&str>, ) -> Result<StandardTokenIntrospectionResponse<EmptyExtraTokenFields, BasicTokenType>, OAuthProviderError>
Auto Trait Implementations§
impl !Freeze for OAuthProviderRuntime
impl !RefUnwindSafe for OAuthProviderRuntime
impl Send for OAuthProviderRuntime
impl Sync for OAuthProviderRuntime
impl Unpin for OAuthProviderRuntime
impl UnsafeUnpin for OAuthProviderRuntime
impl !UnwindSafe for OAuthProviderRuntime
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more