pub struct OidcProvider {Show 23 fields
pub id: String,
pub name: String,
pub slug: Option<String>,
pub icon_url: Option<String>,
pub visibility: OidcProviderVisibility,
pub client_id: String,
pub client_secret: Option<SecretString>,
pub scopes: Option<Vec<String>>,
pub redirect_url: Option<String>,
pub discovery_url: Option<String>,
pub issuer_url: Option<String>,
pub authorization_url: Option<String>,
pub authorization_url_params: Option<String>,
pub token_url: Option<String>,
pub token_url_params: Option<String>,
pub introspection_url: Option<String>,
pub introspection_url_params: Option<String>,
pub revocation_url: Option<String>,
pub revocation_url_params: Option<String>,
pub user_info_url: Option<String>,
pub json_web_key_set_url: Option<String>,
pub json_web_key_set: Option<JsonWebKeySet<CoreJsonWebKey>>,
pub pkce_code_challenge: OidcProviderPkceCodeChallenge,
}Fields§
§id: String§name: String§slug: Option<String>§icon_url: Option<String>§visibility: OidcProviderVisibility§client_id: String§client_secret: Option<SecretString>§scopes: Option<Vec<String>>§redirect_url: Option<String>§discovery_url: Option<String>§issuer_url: Option<String>§token_url: Option<String>§token_url_params: Option<String>§introspection_url: Option<String>§introspection_url_params: Option<String>§revocation_url: Option<String>§revocation_url_params: Option<String>§user_info_url: Option<String>§json_web_key_set_url: Option<String>§json_web_key_set: Option<JsonWebKeySet<CoreJsonWebKey>>§pkce_code_challenge: OidcProviderPkceCodeChallengeImplementations§
Source§impl OidcProvider
impl OidcProvider
Sourcepub fn builder() -> OidcProviderBuilder
pub fn builder() -> OidcProviderBuilder
Create an instance of OidcProvider using the builder syntax
Source§impl OidcProvider
impl OidcProvider
pub async fn oidc_client( &self, ) -> Result<Client<EmptyAdditionalClaims, CoreAuthDisplay, CoreGenderClaim, CoreJweContentEncryptionAlgorithm, CoreJsonWebKey, CoreAuthPrompt, StandardErrorResponse<CoreErrorResponseType>, CoreTokenResponse, CoreTokenIntrospectionResponse, CoreRevocableToken, CoreRevocationErrorResponse, EndpointSet, EndpointNotSet, EndpointNotSet, EndpointNotSet, EndpointMaybeSet, EndpointMaybeSet>, ConfigurationError>
Trait Implementations§
Source§impl Clone for OidcProvider
impl Clone for OidcProvider
Source§impl Debug for OidcProvider
impl Debug for OidcProvider
Auto Trait Implementations§
impl Forget for OidcProvider
impl Freeze for OidcProviderwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const str is !null: Freeze,
PhantomData<str>: Freeze,
PhantomData<String>: Freeze,
PhantomData<CoreJsonWebKey>: Freeze,
impl Move for OidcProvider
impl RefUnwindSafe for OidcProvider
impl Send for OidcProvider
impl Sync for OidcProvider
impl Unpin for OidcProvider
impl UnsafeUnpin for OidcProviderwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const str is !null: UnsafeUnpin,
PhantomData<str>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<CoreJsonWebKey>: UnsafeUnpin,
impl UnwindSafe for OidcProvider
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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