#[non_exhaustive]pub struct UpdateBackendAuthOAuthConfig {
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
The OAuth configurations for authenticating users into your Amplify app.
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 Amazon Cognito domain prefix used to create a hosted UI for authentication.
o_auth_grant_type: Option<OAuthGrantType>
The OAuth grant type to allow app users to authenticate from your Amplify app.
o_auth_scopes: Option<Vec<OAuthScopesElement>>
The list of OAuth-related flows that can allow users to authenticate from your Amplify app.
redirect_sign_in_uris: Option<Vec<String>>
Redirect URLs that OAuth uses when a user signs in to an Amplify app.
redirect_sign_out_uris: Option<Vec<String>>
Redirect URLs that OAuth uses when a user signs out of an Amplify app.
Describes third-party social federation configurations for allowing your users to sign in with OAuth.
Implementations§
source§impl UpdateBackendAuthOAuthConfig
impl UpdateBackendAuthOAuthConfig
sourcepub fn domain_prefix(&self) -> Option<&str>
pub fn domain_prefix(&self) -> Option<&str>
The Amazon Cognito domain prefix used to create a hosted UI for authentication.
sourcepub fn o_auth_grant_type(&self) -> Option<&OAuthGrantType>
pub fn o_auth_grant_type(&self) -> Option<&OAuthGrantType>
The OAuth grant type to allow app users to authenticate from your Amplify app.
sourcepub fn o_auth_scopes(&self) -> &[OAuthScopesElement]
pub fn o_auth_scopes(&self) -> &[OAuthScopesElement]
The list of OAuth-related flows that can allow 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]
Redirect URLs that OAuth uses when a user signs in to 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_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()
.
Describes third-party social federation configurations for allowing your users to sign in with OAuth.
source§impl UpdateBackendAuthOAuthConfig
impl UpdateBackendAuthOAuthConfig
sourcepub fn builder() -> UpdateBackendAuthOAuthConfigBuilder
pub fn builder() -> UpdateBackendAuthOAuthConfigBuilder
Creates a new builder-style object to manufacture UpdateBackendAuthOAuthConfig
.
Trait Implementations§
source§impl Clone for UpdateBackendAuthOAuthConfig
impl Clone for UpdateBackendAuthOAuthConfig
source§fn clone(&self) -> UpdateBackendAuthOAuthConfig
fn clone(&self) -> UpdateBackendAuthOAuthConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UpdateBackendAuthOAuthConfig
impl Debug for UpdateBackendAuthOAuthConfig
source§impl PartialEq for UpdateBackendAuthOAuthConfig
impl PartialEq for UpdateBackendAuthOAuthConfig
source§fn eq(&self, other: &UpdateBackendAuthOAuthConfig) -> bool
fn eq(&self, other: &UpdateBackendAuthOAuthConfig) -> bool
self
and other
values to be equal, and is used
by ==
.