pub struct MappingBuilder<'a> { /* private fields */ }Expand description
Builder for Mapping.
Implementations§
Source§impl<'a> MappingBuilder<'a>
impl<'a> MappingBuilder<'a>
Sourcepub fn allowed_redirect_uris<VALUE: Into<Vec<Cow<'a, str>>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn allowed_redirect_uris<VALUE: Into<Vec<Cow<'a, str>>>>( &mut self, value: VALUE, ) -> &mut Self
List of allowed redirect urls (only for oidc type).
Sourcepub fn bound_audiences<VALUE: Into<Vec<Cow<'a, str>>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn bound_audiences<VALUE: Into<Vec<Cow<'a, str>>>>( &mut self, value: VALUE, ) -> &mut Self
List of audiences that must be present in the token.
Sourcepub fn bound_subject<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn bound_subject<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE, ) -> &mut Self
Token subject value that must be set in the token.
Sourcepub fn domain_id<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn domain_id<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE, ) -> &mut Self
domain_id owning the attribute mapping.
Unset domain_id means the attribute mapping is shared and can be used
by different domains. This requires domain_id_claim to be present.
Attribute mapping can be only shared when the referred identity
provider is also shared (does not set the domain_id attribute).
Sourcepub fn domain_id_claim<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn domain_id_claim<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE, ) -> &mut Self
domain_id claim name.
Sourcepub fn enabled<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn enabled<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
Mapping enabled property. Inactive mappings can not be used for login.
Sourcepub fn groups_claim<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn groups_claim<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE, ) -> &mut Self
groups claim name.
Sourcepub fn id<VALUE: Into<Option<Cow<'a, str>>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn id<VALUE: Into<Option<Cow<'a, str>>>>( &mut self, value: VALUE, ) -> &mut Self
Attribute mapping ID for federated logins.
Sourcepub fn idp_id<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn idp_id<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
ID of the federated identity provider for which this attribute mapping can be used.
Sourcepub fn name<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn name<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
Attribute mapping name for federated logins.
Sourcepub fn oidc_scopes<VALUE: Into<Vec<Cow<'a, str>>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn oidc_scopes<VALUE: Into<Vec<Cow<'a, str>>>>( &mut self, value: VALUE, ) -> &mut Self
List of OIDC scopes.
Sourcepub fn token_project_id<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn token_project_id<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE, ) -> &mut Self
Fixed project_id for the token.
Sourcepub fn token_restriction_id<VALUE: Into<Option<Cow<'a, str>>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn token_restriction_id<VALUE: Into<Option<Cow<'a, str>>>>( &mut self, value: VALUE, ) -> &mut Self
Token restrictions to be applied to the granted token.
Sourcepub fn user_id_claim<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn user_id_claim<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE, ) -> &mut Self
user_id claim name.
Sourcepub fn user_name_claim<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn user_name_claim<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE, ) -> &mut Self
user_name claim name.
Trait Implementations§
Source§impl<'a> Clone for MappingBuilder<'a>
impl<'a> Clone for MappingBuilder<'a>
Source§fn clone(&self) -> MappingBuilder<'a>
fn clone(&self) -> MappingBuilder<'a>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for MappingBuilder<'a>
impl<'a> RefUnwindSafe for MappingBuilder<'a>
impl<'a> Send for MappingBuilder<'a>
impl<'a> Sync for MappingBuilder<'a>
impl<'a> Unpin for MappingBuilder<'a>
impl<'a> UnsafeUnpin for MappingBuilder<'a>
impl<'a> UnwindSafe for MappingBuilder<'a>
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§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