pub struct VerifiedProviderMetadata { /* private fields */ }
Expand description
The verified authorization server metadata.
All the fields required by the OpenID Connect Discovery Spec 1.0 or with a default value are accessible via methods.
To access other fields, use this type’s Deref
implementation.
Implementations§
source§impl VerifiedProviderMetadata
impl VerifiedProviderMetadata
URL of the authorization server’s authorization endpoint.
sourcepub fn userinfo_endpoint(&self) -> &Url
pub fn userinfo_endpoint(&self) -> &Url
URL of the authorization server’s userinfo endpoint.
sourcepub fn token_endpoint(&self) -> &Url
pub fn token_endpoint(&self) -> &Url
URL of the authorization server’s token endpoint.
sourcepub fn response_types_supported(&self) -> &[ResponseType]
pub fn response_types_supported(&self) -> &[ResponseType]
JSON array containing a list of the OAuth 2.0 response_type
values
that this authorization server supports.
sourcepub fn subject_types_supported(&self) -> &[SubjectType]
pub fn subject_types_supported(&self) -> &[SubjectType]
JSON array containing a list of the Subject Identifier types that this OP supports.
sourcepub fn id_token_signing_alg_values_supported(&self) -> &[JsonWebSignatureAlg]
pub fn id_token_signing_alg_values_supported(&self) -> &[JsonWebSignatureAlg]
JSON array containing a list of the JWS alg
values supported by the OP
for the ID Token.
Methods from Deref<Target = ProviderMetadata>§
sourcepub fn response_modes_supported(&self) -> &[ResponseMode]
pub fn response_modes_supported(&self) -> &[ResponseMode]
JSON array containing a list of the OAuth 2.0 response_mode
values
that this authorization server supports.
Defaults to DEFAULT_RESPONSE_MODES_SUPPORTED
.
sourcepub fn grant_types_supported(&self) -> &[GrantType]
pub fn grant_types_supported(&self) -> &[GrantType]
JSON array containing a list of the OAuth 2.0 grant type values that this authorization server supports.
Defaults to DEFAULT_GRANT_TYPES_SUPPORTED
.
sourcepub fn token_endpoint_auth_methods_supported(
&self,
) -> &[OAuthClientAuthenticationMethod]
pub fn token_endpoint_auth_methods_supported( &self, ) -> &[OAuthClientAuthenticationMethod]
JSON array containing a list of client authentication methods supported by the token endpoint.
Defaults to DEFAULT_AUTH_METHODS_SUPPORTED
.
sourcepub fn revocation_endpoint_auth_methods_supported(
&self,
) -> &[OAuthClientAuthenticationMethod]
pub fn revocation_endpoint_auth_methods_supported( &self, ) -> &[OAuthClientAuthenticationMethod]
JSON array containing a list of client authentication methods supported by the revocation endpoint.
Defaults to DEFAULT_AUTH_METHODS_SUPPORTED
.
sourcepub fn claim_types_supported(&self) -> &[ClaimType]
pub fn claim_types_supported(&self) -> &[ClaimType]
JSON array containing a list of the Claim Types that the OpenID Provider supports.
Defaults to DEFAULT_CLAIM_TYPES_SUPPORTED
.
sourcepub fn claims_parameter_supported(&self) -> bool
pub fn claims_parameter_supported(&self) -> bool
Boolean value specifying whether the OP supports use of the claims
parameter.
Defaults to false
.
sourcepub fn request_parameter_supported(&self) -> bool
pub fn request_parameter_supported(&self) -> bool
Boolean value specifying whether the OP supports use of the request
parameter.
Defaults to false
.
sourcepub fn request_uri_parameter_supported(&self) -> bool
pub fn request_uri_parameter_supported(&self) -> bool
Boolean value specifying whether the OP supports use of the
request_uri
parameter.
Defaults to true
.
sourcepub fn require_request_uri_registration(&self) -> bool
pub fn require_request_uri_registration(&self) -> bool
Boolean value specifying whether the OP requires any request_uri
values used to be pre-registered.
Defaults to false
.
sourcepub fn require_signed_request_object(&self) -> bool
pub fn require_signed_request_object(&self) -> bool
Indicates where authorization request needs to be protected as Request
Object and provided through either request
or request_uri
parameter.
Defaults to false
.
Indicates whether the authorization server accepts authorization requests only via PAR.
Defaults to false
.
Trait Implementations§
source§impl Clone for VerifiedProviderMetadata
impl Clone for VerifiedProviderMetadata
source§fn clone(&self) -> VerifiedProviderMetadata
fn clone(&self) -> VerifiedProviderMetadata
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for VerifiedProviderMetadata
impl Debug for VerifiedProviderMetadata
Auto Trait Implementations§
impl Freeze for VerifiedProviderMetadata
impl RefUnwindSafe for VerifiedProviderMetadata
impl Send for VerifiedProviderMetadata
impl Sync for VerifiedProviderMetadata
impl Unpin for VerifiedProviderMetadata
impl UnwindSafe for VerifiedProviderMetadata
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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>
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>
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