pub enum ClientCredentials {
None {
client_id: String,
},
ClientSecretBasic {
client_id: String,
client_secret: String,
},
ClientSecretPost {
client_id: String,
client_secret: String,
},
ClientSecretJwt {
client_id: String,
client_secret: String,
signing_algorithm: JsonWebSignatureAlg,
token_endpoint: Url,
},
PrivateKeyJwt {
client_id: String,
jwt_signing_method: JwtSigningMethod,
signing_algorithm: JsonWebSignatureAlg,
token_endpoint: Url,
},
}
Available on crate feature
experimental-oidc
only.Expand description
The credentials obtained during registration, to authenticate a client on endpoints that require it.
Variants§
None
No client authentication is used.
This is used if the client is public.
ClientSecretBasic
The client authentication is sent via the Authorization HTTP header.
Fields
ClientSecretPost
The client authentication is sent with the body of the request.
Fields
ClientSecretJwt
The client authentication uses a JWT signed with a key derived from the client secret.
Fields
§
signing_algorithm: JsonWebSignatureAlg
The algorithm used to sign the JWT.
PrivateKeyJwt
The client authentication uses a JWT signed with a private key.
Fields
§
jwt_signing_method: JwtSigningMethod
The method used to sign the JWT.
§
signing_algorithm: JsonWebSignatureAlg
The algorithm used to sign the JWT.
Implementations§
Trait Implementations§
Source§impl Clone for ClientCredentials
impl Clone for ClientCredentials
Source§fn clone(&self) -> ClientCredentials
fn clone(&self) -> ClientCredentials
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ClientCredentials
impl Debug for ClientCredentials
Source§impl<'a> From<ClientCredentials> for IntrospectionAuthentication<'a>
impl<'a> From<ClientCredentials> for IntrospectionAuthentication<'a>
Source§fn from(credentials: ClientCredentials) -> IntrospectionAuthentication<'a>
fn from(credentials: ClientCredentials) -> IntrospectionAuthentication<'a>
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ClientCredentials
impl !RefUnwindSafe for ClientCredentials
impl Send for ClientCredentials
impl Sync for ClientCredentials
impl Unpin for ClientCredentials
impl !UnwindSafe for ClientCredentials
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> CompatExt for T
impl<T> CompatExt for T
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
Source§fn consume_handle(handle: Handle) -> Arc<T>
fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<>
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
§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>
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