Struct openid_client::types::ClientMetadata

source ·
pub struct ClientMetadata {
Show 42 fields pub client_id: Option<String>, pub client_secret: Option<String>, pub registration_access_token: Option<String>, pub registration_client_uri: Option<String>, pub client_id_issued_at: Option<i64>, pub client_secret_expires_at: Option<i64>, pub token_endpoint_auth_method: Option<String>, pub token_endpoint_auth_signing_alg: Option<String>, pub introspection_endpoint_auth_method: Option<String>, pub introspection_endpoint_auth_signing_alg: Option<String>, pub revocation_endpoint_auth_method: Option<String>, pub revocation_endpoint_auth_signing_alg: Option<String>, pub redirect_uri: Option<String>, pub redirect_uris: Option<Vec<String>>, pub response_type: Option<String>, pub response_types: Option<Vec<String>>, pub grant_types: Option<Vec<String>>, pub jwks_uri: Option<String>, pub jwks: Option<Jwks>, pub sector_identifier_uri: Option<String>, pub subject_type: Option<String>, pub id_token_signed_response_alg: Option<String>, pub id_token_encrypted_response_alg: Option<String>, pub id_token_encrypted_response_enc: Option<String>, pub userinfo_signed_response_alg: Option<String>, pub userinfo_encrypted_response_alg: Option<String>, pub userinfo_encrypted_response_enc: Option<String>, pub request_object_signing_alg: Option<String>, pub request_object_encryption_alg: Option<String>, pub request_object_encryption_enc: Option<String>, pub default_max_age: Option<u64>, pub require_auth_time: Option<bool>, pub default_acr_values: Option<Vec<String>>, pub initiate_login_uri: Option<String>, pub request_uris: Option<String>, pub tls_client_certificate_bound_access_tokens: Option<bool>, pub post_logout_redirect_uris: Option<Vec<String>>, pub authorization_signed_response_alg: Option<String>, pub authorization_encrypted_response_alg: Option<String>, pub authorization_encrypted_response_enc: Option<String>, pub dpop_bound_access_tokens: Option<bool>, pub other_fields: HashMap<String, Value>,
}
Expand description

§Client Metadata

This struct is used to create a client as well as to register a client. This is why you would see Option<bool> in places. Set it explicitly to register a client or create one

Fields§

§client_id: Option<String>

Client Id

§client_secret: Option<String>

Client secret

§registration_access_token: Option<String>§registration_client_uri: Option<String>§client_id_issued_at: Option<i64>§client_secret_expires_at: Option<i64>

Secret Expiry Epoch Seconds

§token_endpoint_auth_method: Option<String>

Authentication method used by the client for authenticating with the OP

§token_endpoint_auth_signing_alg: Option<String>

Algorithm used for signing the JWT used to authenticate the client at the token endpoint.

§introspection_endpoint_auth_method: Option<String>

Authentication method used by the client for introspection endpoint

§introspection_endpoint_auth_signing_alg: Option<String>

Algorithm used for signing the JWT used to authenticate the client at the introspection endpoint.

§revocation_endpoint_auth_method: Option<String>

Authentication method used by the client for revocation endpoint

§revocation_endpoint_auth_signing_alg: Option<String>

Algorithm used for signing the JWT used to authenticate the client at the revocation endpoint.

§redirect_uri: Option<String>

The redirect uri where response will be sent

§redirect_uris: Option<Vec<String>>

A list of acceptable redirect uris

§response_type: Option<String>

Response type supported by the client.

§response_types: Option<Vec<String>>

List of Response type supported by the client

§grant_types: Option<Vec<String>>§jwks_uri: Option<String>§jwks: Option<Jwks>§sector_identifier_uri: Option<String>§subject_type: Option<String>§id_token_signed_response_alg: Option<String>§id_token_encrypted_response_alg: Option<String>§id_token_encrypted_response_enc: Option<String>§userinfo_signed_response_alg: Option<String>§userinfo_encrypted_response_alg: Option<String>§userinfo_encrypted_response_enc: Option<String>§request_object_signing_alg: Option<String>§request_object_encryption_alg: Option<String>§request_object_encryption_enc: Option<String>§default_max_age: Option<u64>§require_auth_time: Option<bool>§default_acr_values: Option<Vec<String>>§initiate_login_uri: Option<String>§request_uris: Option<String>§tls_client_certificate_bound_access_tokens: Option<bool>§post_logout_redirect_uris: Option<Vec<String>>

Client’s allowed redirect uris after a logout

§authorization_signed_response_alg: Option<String>

Algorithm used for signing authorization responses. If this is specified, the response will be signed using JWS and the configured algorithm. The algorithm none is not allowed. The default, if omitted, is RS256 See JARM Spec

§authorization_encrypted_response_alg: Option<String>

Algorithm used for encrypting authorization responses. If both signing and encryption are requested, the response will be signed then encrypted, with the result being a Nested JWT, as defined in JWT RFC7519. The default, if omitted, is that no encryption is performed. See JARM Spec

§authorization_encrypted_response_enc: Option<String>

Algoritm for encrypting authorization responses. If authorization_encrypted_response_alg is specified, the default for this value is A128CBC-HS256. When authorization_encrypted_response_enc is included, authorization_encrypted_response_alg MUST also be provided. See JARM Spec

§dpop_bound_access_tokens: Option<bool>

A boolean value specifying whether the client always uses DPoP for token requests. If omitted, the default value is false.

§other_fields: HashMap<String, Value>

Extra key values

Trait Implementations§

source§

impl Debug for ClientMetadata

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for ClientMetadata

source§

fn default() -> ClientMetadata

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for ClientMetadata

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Serialize for ClientMetadata

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,