#[non_exhaustive]pub struct OpenIdConnectConfigurationBuilder { /* private fields */ }Expand description
A builder for OpenIdConnectConfiguration.
Implementations§
source§impl OpenIdConnectConfigurationBuilder
impl OpenIdConnectConfigurationBuilder
sourcepub fn issuer(self, input: impl Into<String>) -> Self
pub fn issuer(self, input: impl Into<String>) -> Self
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 set_issuer(self, input: Option<String>) -> Self
pub fn set_issuer(self, input: Option<String>) -> Self
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 get_issuer(&self) -> &Option<String>
pub fn get_issuer(&self) -> &Option<String>
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, input: impl Into<String>) -> Self
pub fn entity_id_prefix(self, input: impl Into<String>) -> Self
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 set_entity_id_prefix(self, input: Option<String>) -> Self
pub fn set_entity_id_prefix(self, input: Option<String>) -> Self
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 get_entity_id_prefix(&self) -> &Option<String>
pub fn get_entity_id_prefix(&self) -> &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.
sourcepub fn group_configuration(self, input: OpenIdConnectGroupConfiguration) -> Self
pub fn group_configuration(self, input: OpenIdConnectGroupConfiguration) -> Self
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 set_group_configuration(
self,
input: Option<OpenIdConnectGroupConfiguration>,
) -> Self
pub fn set_group_configuration( self, input: Option<OpenIdConnectGroupConfiguration>, ) -> Self
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 get_group_configuration(
&self,
) -> &Option<OpenIdConnectGroupConfiguration>
pub fn get_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, input: OpenIdConnectTokenSelection) -> Self
pub fn token_selection(self, input: OpenIdConnectTokenSelection) -> Self
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.
This field is required.sourcepub fn set_token_selection(
self,
input: Option<OpenIdConnectTokenSelection>,
) -> Self
pub fn set_token_selection( self, input: Option<OpenIdConnectTokenSelection>, ) -> Self
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.
sourcepub fn get_token_selection(&self) -> &Option<OpenIdConnectTokenSelection>
pub fn get_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.
sourcepub fn build(self) -> Result<OpenIdConnectConfiguration, BuildError>
pub fn build(self) -> Result<OpenIdConnectConfiguration, BuildError>
Consumes the builder and constructs a OpenIdConnectConfiguration.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for OpenIdConnectConfigurationBuilder
impl Clone for OpenIdConnectConfigurationBuilder
source§fn clone(&self) -> OpenIdConnectConfigurationBuilder
fn clone(&self) -> OpenIdConnectConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for OpenIdConnectConfigurationBuilder
impl Default for OpenIdConnectConfigurationBuilder
source§fn default() -> OpenIdConnectConfigurationBuilder
fn default() -> OpenIdConnectConfigurationBuilder
source§impl PartialEq for OpenIdConnectConfigurationBuilder
impl PartialEq for OpenIdConnectConfigurationBuilder
source§fn eq(&self, other: &OpenIdConnectConfigurationBuilder) -> bool
fn eq(&self, other: &OpenIdConnectConfigurationBuilder) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OpenIdConnectConfigurationBuilder
Auto Trait Implementations§
impl Freeze for OpenIdConnectConfigurationBuilder
impl RefUnwindSafe for OpenIdConnectConfigurationBuilder
impl Send for OpenIdConnectConfigurationBuilder
impl Sync for OpenIdConnectConfigurationBuilder
impl Unpin for OpenIdConnectConfigurationBuilder
impl UnwindSafe for OpenIdConnectConfigurationBuilder
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