#[non_exhaustive]pub struct OpenIdConnectAccessTokenConfigurationItem {
pub principal_id_claim: String,
pub audiences: Option<Vec<String>>,
}Expand description
The configuration of an OpenID Connect (OIDC) identity source for handling access token claims. Contains the claim that you want to identify as the principal in an authorization request, and the values of the aud claim, or audiences, that you want to accept.
This data type is part of a OpenIdConnectTokenSelectionItem structure, which is a parameter of ListIdentitySources.
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.principal_id_claim: StringThe claim that determines the principal in OIDC access tokens. For example, sub.
audiences: Option<Vec<String>>The access token aud claim values that you want to accept in your policy store. For example, https://myapp.example.com, https://myapp2.example.com.
Implementations§
source§impl OpenIdConnectAccessTokenConfigurationItem
impl OpenIdConnectAccessTokenConfigurationItem
sourcepub fn principal_id_claim(&self) -> &str
pub fn principal_id_claim(&self) -> &str
The claim that determines the principal in OIDC access tokens. For example, sub.
sourcepub fn audiences(&self) -> &[String]
pub fn audiences(&self) -> &[String]
The access token aud claim values that you want to accept in your policy store. For example, https://myapp.example.com, https://myapp2.example.com.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .audiences.is_none().
source§impl OpenIdConnectAccessTokenConfigurationItem
impl OpenIdConnectAccessTokenConfigurationItem
sourcepub fn builder() -> OpenIdConnectAccessTokenConfigurationItemBuilder
pub fn builder() -> OpenIdConnectAccessTokenConfigurationItemBuilder
Creates a new builder-style object to manufacture OpenIdConnectAccessTokenConfigurationItem.
Trait Implementations§
source§impl Clone for OpenIdConnectAccessTokenConfigurationItem
impl Clone for OpenIdConnectAccessTokenConfigurationItem
source§fn clone(&self) -> OpenIdConnectAccessTokenConfigurationItem
fn clone(&self) -> OpenIdConnectAccessTokenConfigurationItem
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl PartialEq for OpenIdConnectAccessTokenConfigurationItem
impl PartialEq for OpenIdConnectAccessTokenConfigurationItem
source§fn eq(&self, other: &OpenIdConnectAccessTokenConfigurationItem) -> bool
fn eq(&self, other: &OpenIdConnectAccessTokenConfigurationItem) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for OpenIdConnectAccessTokenConfigurationItem
Auto Trait Implementations§
impl Freeze for OpenIdConnectAccessTokenConfigurationItem
impl RefUnwindSafe for OpenIdConnectAccessTokenConfigurationItem
impl Send for OpenIdConnectAccessTokenConfigurationItem
impl Sync for OpenIdConnectAccessTokenConfigurationItem
impl Unpin for OpenIdConnectAccessTokenConfigurationItem
impl UnwindSafe for OpenIdConnectAccessTokenConfigurationItem
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> 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