#[non_exhaustive]pub struct OpenIdConnectConfiguration {
pub issuer: String,
pub entity_id_prefix: Option<String>,
pub group_configuration: Option<OpenIdConnectGroupConfiguration>,
pub token_selection: Option<OpenIdConnectTokenSelection>,
}Expand description
Contains configuration details of an OpenID Connect (OIDC) identity provider, or identity source, that Verified Permissions can use to generate entities from authenticated identities. It specifies the issuer URL, token type that you want to use, and policy store entity details.
This data type is part of a Configuration structure, which is a parameter to CreateIdentitySource.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.issuer: StringThe issuer URL of an OIDC identity provider. This URL must have an OIDC discovery endpoint at the path .well-known/openid-configuration.
entity_id_prefix: Option<String>A descriptive string that you want to prefix to user entities from your OIDC identity provider. For example, if you set an entityIdPrefix of MyOIDCProvider, you can reference principals in your policies in the format MyCorp::User::MyOIDCProvider|Carlos.
group_configuration: Option<OpenIdConnectGroupConfiguration>The claim in OIDC identity provider tokens that indicates a user's group membership, and the entity type that you want to map it to. For example, this object can map the contents of a groups claim to MyCorp::UserGroup.
token_selection: Option<OpenIdConnectTokenSelection>The token type that you want to process from your OIDC identity provider. Your policy store can process either identity (ID) or access tokens from a given OIDC identity source.
Implementations§
source§impl OpenIdConnectConfiguration
impl OpenIdConnectConfiguration
sourcepub fn issuer(&self) -> &str
pub fn issuer(&self) -> &str
The issuer URL of an OIDC identity provider. This URL must have an OIDC discovery endpoint at the path .well-known/openid-configuration.
sourcepub fn entity_id_prefix(&self) -> Option<&str>
pub fn entity_id_prefix(&self) -> Option<&str>
A descriptive string that you want to prefix to user entities from your OIDC identity provider. For example, if you set an entityIdPrefix of MyOIDCProvider, you can reference principals in your policies in the format MyCorp::User::MyOIDCProvider|Carlos.
sourcepub fn group_configuration(&self) -> Option<&OpenIdConnectGroupConfiguration>
pub fn group_configuration(&self) -> Option<&OpenIdConnectGroupConfiguration>
The claim in OIDC identity provider tokens that indicates a user's group membership, and the entity type that you want to map it to. For example, this object can map the contents of a groups claim to MyCorp::UserGroup.
sourcepub fn token_selection(&self) -> Option<&OpenIdConnectTokenSelection>
pub fn token_selection(&self) -> Option<&OpenIdConnectTokenSelection>
The token type that you want to process from your OIDC identity provider. Your policy store can process either identity (ID) or access tokens from a given OIDC identity source.
source§impl OpenIdConnectConfiguration
impl OpenIdConnectConfiguration
sourcepub fn builder() -> OpenIdConnectConfigurationBuilder
pub fn builder() -> OpenIdConnectConfigurationBuilder
Creates a new builder-style object to manufacture OpenIdConnectConfiguration.
Trait Implementations§
source§impl Clone for OpenIdConnectConfiguration
impl Clone for OpenIdConnectConfiguration
source§fn clone(&self) -> OpenIdConnectConfiguration
fn clone(&self) -> OpenIdConnectConfiguration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for OpenIdConnectConfiguration
impl Debug for OpenIdConnectConfiguration
impl StructuralPartialEq for OpenIdConnectConfiguration
Auto Trait Implementations§
impl Freeze for OpenIdConnectConfiguration
impl RefUnwindSafe for OpenIdConnectConfiguration
impl Send for OpenIdConnectConfiguration
impl Sync for OpenIdConnectConfiguration
impl Unpin for OpenIdConnectConfiguration
impl UnwindSafe for OpenIdConnectConfiguration
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§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>
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