39 lines
1.5 KiB
TypeScript
39 lines
1.5 KiB
TypeScript
import type { Construct } from 'constructs';
|
|
import type { UserPoolIdentityProviderProps } from './base';
|
|
import { UserPoolIdentityProviderBase } from './private/user-pool-idp-base';
|
|
/**
|
|
* Properties to initialize UserPoolFacebookIdentityProvider
|
|
*/
|
|
export interface UserPoolIdentityProviderFacebookProps extends UserPoolIdentityProviderProps {
|
|
/**
|
|
* The client id recognized by Facebook APIs.
|
|
*/
|
|
readonly clientId: string;
|
|
/**
|
|
* The client secret to be accompanied with clientId for Facebook to authenticate the client.
|
|
* @see https://developers.facebook.com/docs/facebook-login/security#appsecret
|
|
*/
|
|
readonly clientSecret: string;
|
|
/**
|
|
* The list of Facebook permissions to obtain for getting access to the Facebook profile.
|
|
* @see https://developers.facebook.com/docs/facebook-login/permissions
|
|
* @default [ public_profile ]
|
|
*/
|
|
readonly scopes?: string[];
|
|
/**
|
|
* The Facebook API version to use
|
|
* @default - to the oldest version supported by Facebook
|
|
*/
|
|
readonly apiVersion?: string;
|
|
}
|
|
/**
|
|
* Represents an identity provider that integrates with Facebook Login
|
|
* @resource AWS::Cognito::UserPoolIdentityProvider
|
|
*/
|
|
export declare class UserPoolIdentityProviderFacebook extends UserPoolIdentityProviderBase {
|
|
/** Uniquely identifies this class. */
|
|
static readonly PROPERTY_INJECTION_ID: string;
|
|
readonly providerName: string;
|
|
constructor(scope: Construct, id: string, props: UserPoolIdentityProviderFacebookProps);
|
|
}
|