Enum matrix_sdk::oidc::types::client_credentials::ClientCredentials
source · 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,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§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