Interface IUserPoolIdentityProviderGoogleProps
Properties to initialize UserPoolGoogleIdentityProvider.
Inherited Members
Namespace: Amazon.CDK.AWS.Cognito
Assembly: Amazon.CDK.AWS.Cognito.dll
Syntax (csharp)
public interface IUserPoolIdentityProviderGoogleProps : IUserPoolIdentityProviderProps
Syntax (vb)
Public Interface IUserPoolIdentityProviderGoogleProps
Inherits IUserPoolIdentityProviderProps
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Cognito;
ProviderAttribute providerAttribute;
UserPool userPool;
var userPoolIdentityProviderGoogleProps = new UserPoolIdentityProviderGoogleProps {
ClientId = "clientId",
ClientSecret = "clientSecret",
UserPool = userPool,
// the properties below are optional
AttributeMapping = new AttributeMapping {
Address = providerAttribute,
Birthdate = providerAttribute,
Custom = new Dictionary<string, ProviderAttribute> {
{ "customKey", providerAttribute }
},
Email = providerAttribute,
FamilyName = providerAttribute,
Fullname = providerAttribute,
Gender = providerAttribute,
GivenName = providerAttribute,
LastUpdateTime = providerAttribute,
Locale = providerAttribute,
MiddleName = providerAttribute,
Nickname = providerAttribute,
PhoneNumber = providerAttribute,
PreferredUsername = providerAttribute,
ProfilePage = providerAttribute,
ProfilePicture = providerAttribute,
Timezone = providerAttribute,
Website = providerAttribute
},
Scopes = new [] { "scopes" }
};
Synopsis
Properties
ClientId | The client id recognized by Google APIs. |
ClientSecret | The client secret to be accompanied with clientId for Google APIs to authenticate the client. |
Scopes | The list of google permissions to obtain for getting access to the google profile. |
Properties
ClientId
The client id recognized by Google APIs.
string ClientId { get; }
Property Value
System.String
Remarks
ClientSecret
The client secret to be accompanied with clientId for Google APIs to authenticate the client.
string ClientSecret { get; }
Property Value
System.String
Remarks
Scopes
The list of google permissions to obtain for getting access to the google profile.
virtual string[] Scopes { get; }
Property Value
System.String[]
Remarks
Default: [ profile ]
See: https://developers.google.com/identity/sign-in/web/sign-in