44 lines
1.8 KiB
TypeScript
44 lines
1.8 KiB
TypeScript
import type { Construct } from 'constructs';
|
|
import type { UserPoolIdentityProviderProps } from './base';
|
|
import { UserPoolIdentityProviderBase } from './private/user-pool-idp-base';
|
|
import type { SecretValue } from '../../../core';
|
|
/**
|
|
* Properties to initialize UserPoolGoogleIdentityProvider
|
|
*/
|
|
export interface UserPoolIdentityProviderGoogleProps extends UserPoolIdentityProviderProps {
|
|
/**
|
|
* The client id recognized by Google APIs.
|
|
* @see https://developers.google.com/identity/sign-in/web/sign-in#specify_your_apps_client_id
|
|
*/
|
|
readonly clientId: string;
|
|
/**
|
|
* The client secret to be accompanied with clientId for Google APIs to authenticate the client.
|
|
* @see https://developers.google.com/identity/sign-in/web/sign-in
|
|
* @default none
|
|
* @deprecated use clientSecretValue instead
|
|
*/
|
|
readonly clientSecret?: string;
|
|
/**
|
|
* The client secret to be accompanied with clientId for Google APIs to authenticate the client as SecretValue
|
|
* @see https://developers.google.com/identity/sign-in/web/sign-in
|
|
* @default none
|
|
*/
|
|
readonly clientSecretValue?: SecretValue;
|
|
/**
|
|
* The list of Google permissions to obtain for getting access to the Google profile
|
|
* @see https://developers.google.com/identity/sign-in/web/sign-in
|
|
* @default [ profile ]
|
|
*/
|
|
readonly scopes?: string[];
|
|
}
|
|
/**
|
|
* Represents an identity provider that integrates with Google
|
|
* @resource AWS::Cognito::UserPoolIdentityProvider
|
|
*/
|
|
export declare class UserPoolIdentityProviderGoogle extends UserPoolIdentityProviderBase {
|
|
/** Uniquely identifies this class. */
|
|
static readonly PROPERTY_INJECTION_ID: string;
|
|
readonly providerName: string;
|
|
constructor(scope: Construct, id: string, props: UserPoolIdentityProviderGoogleProps);
|
|
}
|