/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the amplifybackend-2020-08-11.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AmplifyBackend.Model { /// /// The OAuth configurations for authenticating users into your Amplify app. /// public partial class UpdateBackendAuthOAuthConfig { private string _domainPrefix; private OAuthGrantType _oAuthGrantType; private List _oAuthScopes = new List(); private List _redirectSignInURIs = new List(); private List _redirectSignOutURIs = new List(); private SocialProviderSettings _socialProviderSettings; /// /// Gets and sets the property DomainPrefix. /// /// The Amazon Cognito domain prefix used to create a hosted UI for authentication. /// /// public string DomainPrefix { get { return this._domainPrefix; } set { this._domainPrefix = value; } } // Check to see if DomainPrefix property is set internal bool IsSetDomainPrefix() { return this._domainPrefix != null; } /// /// Gets and sets the property OAuthGrantType. /// /// The OAuth grant type to allow app users to authenticate from your Amplify app. /// /// public OAuthGrantType OAuthGrantType { get { return this._oAuthGrantType; } set { this._oAuthGrantType = value; } } // Check to see if OAuthGrantType property is set internal bool IsSetOAuthGrantType() { return this._oAuthGrantType != null; } /// /// Gets and sets the property OAuthScopes. /// /// The list of OAuth-related flows that can allow users to authenticate from your Amplify /// app. /// /// public List OAuthScopes { get { return this._oAuthScopes; } set { this._oAuthScopes = value; } } // Check to see if OAuthScopes property is set internal bool IsSetOAuthScopes() { return this._oAuthScopes != null && this._oAuthScopes.Count > 0; } /// /// Gets and sets the property RedirectSignInURIs. /// /// Redirect URLs that OAuth uses when a user signs in to an Amplify app. /// /// public List RedirectSignInURIs { get { return this._redirectSignInURIs; } set { this._redirectSignInURIs = value; } } // Check to see if RedirectSignInURIs property is set internal bool IsSetRedirectSignInURIs() { return this._redirectSignInURIs != null && this._redirectSignInURIs.Count > 0; } /// /// Gets and sets the property RedirectSignOutURIs. /// /// Redirect URLs that OAuth uses when a user signs out of an Amplify app. /// /// public List RedirectSignOutURIs { get { return this._redirectSignOutURIs; } set { this._redirectSignOutURIs = value; } } // Check to see if RedirectSignOutURIs property is set internal bool IsSetRedirectSignOutURIs() { return this._redirectSignOutURIs != null && this._redirectSignOutURIs.Count > 0; } /// /// Gets and sets the property SocialProviderSettings. /// /// Describes third-party social federation configurations for allowing your users to /// sign in with OAuth. /// /// public SocialProviderSettings SocialProviderSettings { get { return this._socialProviderSettings; } set { this._socialProviderSettings = value; } } // Check to see if SocialProviderSettings property is set internal bool IsSetSocialProviderSettings() { return this._socialProviderSettings != null; } } }