#[non_exhaustive]pub struct CreateBackendAuthOAuthConfig {
pub domain_prefix: Option<String>,
pub o_auth_grant_type: Option<OAuthGrantType>,
pub o_auth_scopes: Option<Vec<OAuthScopesElement>>,
pub redirect_sign_in_uris: Option<Vec<String>>,
pub redirect_sign_out_uris: Option<Vec<String>>,
pub social_provider_settings: Option<SocialProviderSettings>,
}
Expand description
Creates the OAuth configuration for your Amplify project.
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.domain_prefix: Option<String>
The domain prefix for your Amplify app.
o_auth_grant_type: Option<OAuthGrantType>
The OAuth grant type that you use to allow app users to authenticate from your Amplify app.
o_auth_scopes: Option<Vec<OAuthScopesElement>>
List of OAuth-related flows used to allow your app users to authenticate from your Amplify app.
redirect_sign_in_uris: Option<Vec<String>>
The redirected URI for signing in to your Amplify app.
redirect_sign_out_uris: Option<Vec<String>>
Redirect URLs that OAuth uses when a user signs out of an Amplify app.
The settings for using social providers to access your Amplify app.
Implementations§
source§impl CreateBackendAuthOAuthConfig
impl CreateBackendAuthOAuthConfig
sourcepub fn domain_prefix(&self) -> Option<&str>
pub fn domain_prefix(&self) -> Option<&str>
The domain prefix for your Amplify app.
sourcepub fn o_auth_grant_type(&self) -> Option<&OAuthGrantType>
pub fn o_auth_grant_type(&self) -> Option<&OAuthGrantType>
The OAuth grant type that you use to allow app users to authenticate from your Amplify app.
sourcepub fn o_auth_scopes(&self) -> &[OAuthScopesElement]
pub fn o_auth_scopes(&self) -> &[OAuthScopesElement]
List of OAuth-related flows used to allow your app users to authenticate from your Amplify app.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .o_auth_scopes.is_none()
.
sourcepub fn redirect_sign_in_uris(&self) -> &[String]
pub fn redirect_sign_in_uris(&self) -> &[String]
The redirected URI for signing in to your Amplify app.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .redirect_sign_in_uris.is_none()
.
sourcepub fn redirect_sign_out_uris(&self) -> &[String]
pub fn redirect_sign_out_uris(&self) -> &[String]
Redirect URLs that OAuth uses when a user signs out of an Amplify app.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .redirect_sign_out_uris.is_none()
.
The settings for using social providers to access your Amplify app.
source§impl CreateBackendAuthOAuthConfig
impl CreateBackendAuthOAuthConfig
sourcepub fn builder() -> CreateBackendAuthOAuthConfigBuilder
pub fn builder() -> CreateBackendAuthOAuthConfigBuilder
Creates a new builder-style object to manufacture CreateBackendAuthOAuthConfig
.
Trait Implementations§
source§impl Clone for CreateBackendAuthOAuthConfig
impl Clone for CreateBackendAuthOAuthConfig
source§fn clone(&self) -> CreateBackendAuthOAuthConfig
fn clone(&self) -> CreateBackendAuthOAuthConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateBackendAuthOAuthConfig
impl Debug for CreateBackendAuthOAuthConfig
source§impl PartialEq for CreateBackendAuthOAuthConfig
impl PartialEq for CreateBackendAuthOAuthConfig
source§fn eq(&self, other: &CreateBackendAuthOAuthConfig) -> bool
fn eq(&self, other: &CreateBackendAuthOAuthConfig) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateBackendAuthOAuthConfig
Auto Trait Implementations§
impl Freeze for CreateBackendAuthOAuthConfig
impl RefUnwindSafe for CreateBackendAuthOAuthConfig
impl Send for CreateBackendAuthOAuthConfig
impl Sync for CreateBackendAuthOAuthConfig
impl Unpin for CreateBackendAuthOAuthConfig
impl UnwindSafe for CreateBackendAuthOAuthConfig
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