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
Fields
The client authentication is sent via the Authorization HTTP header.
ClientSecretPost
Fields
The client authentication is sent with the body of the request.
ClientSecretJwt
Fields
§
signing_algorithm: JsonWebSignatureAlg
The algorithm used to sign the JWT.
The client authentication uses a JWT signed with a key derived from the client secret.
PrivateKeyJwt
Fields
§
jwt_signing_method: JwtSigningMethod
The method used to sign the JWT.
§
signing_algorithm: JsonWebSignatureAlg
The algorithm used to sign the JWT.
The client authentication uses a JWT signed with a private key.
Implementations§
§impl ClientCredentials
impl ClientCredentials
Trait Implementations§
§impl Clone for ClientCredentials
impl Clone for ClientCredentials
§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 more§impl Debug for ClientCredentials
impl Debug for ClientCredentials
§impl<'a> From<ClientCredentials> for IntrospectionAuthentication<'a>
impl<'a> From<ClientCredentials> for IntrospectionAuthentication<'a>
§fn from(credentials: ClientCredentials) -> IntrospectionAuthentication<'a>
fn from(credentials: ClientCredentials) -> IntrospectionAuthentication<'a>
Converts to this type from the input type.
Auto Trait Implementations§
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
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
Create a new handle for an Arc value Read more
§fn clone_handle(handle: Handle) -> Handle
fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§fn consume_handle(handle: Handle) -> Arc<T>
fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<>