-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Niranjan Jayakar
committed
Jun 1, 2020
1 parent
05b06f0
commit ee21d0e
Showing
13 changed files
with
213 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { Construct, Resource } from '@aws-cdk/core'; | ||
import { IUserPool } from '../user-pool'; | ||
import { IUserPoolIdentityProvider } from '../user-pool-idp'; | ||
|
||
/** | ||
* Properties to create a new instance of UserPoolIdentityProvider | ||
*/ | ||
export interface UserPoolIdentityProviderProps { | ||
/** | ||
* The user pool to which this construct provides identities. | ||
*/ | ||
readonly userPool: IUserPool; | ||
} | ||
|
||
/** | ||
* Options to integrate with the various social identity providers. | ||
*/ | ||
export abstract class UserPoolIdentityProviderBase extends Resource implements IUserPoolIdentityProvider { | ||
public abstract readonly providerName: string; | ||
|
||
public constructor(scope: Construct, id: string, props: UserPoolIdentityProviderProps) { | ||
super(scope, id); | ||
props.userPool.registerIdentityProvider(this); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
export * from './base'; | ||
export * from './amazon'; | ||
export * from './facebook'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.