Created
December 29, 2020 09:40
-
-
Save dhavaln/83d9c714d3ef7609097bfe5385da90a2 to your computer and use it in GitHub Desktop.
ServerlessDocs Frontend App Config
This file contains hidden or 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 is in git ignore | |
//you need to create app-config.js, exact similar to this sample file, you can go to cloudformation stack output section to get all values | |
const userPoolId = ''; | |
const normalClientId = ''; | |
const region = 'us-west-2'; | |
const identityPoolId = ''; | |
const S3FilesBucket = ''; | |
//=============== Cognito Group Name =================== | |
const adminGroupName = 'Admin' | |
//===============AWS Cognito Hosted Ui References================== | |
const domainName = '' | |
const hosteduiClientId = '' | |
const loggedInRedirectUrl = '' | |
const loggedOutRedirectUrl = '' | |
const apiEndpoint = '' | |
const oauthPath = '' | |
//===============OAuth Cognito Identity ChallengeUrls | |
const challengeUrls = { | |
logIn: `${domainName}.auth.${region}.amazoncognito.com/login?client_id=${hosteduiClientId}&response_type=code&scope=openid+aws.cognito.signin.user.admin&redirect_uri=${loggedInRedirectUrl}`, | |
userInfo: `${domainName}.auth.${region}.amazoncognito.com/oauth2/userInfo`, | |
logOut: `${domainName}.auth.${region}.amazoncognito.com/logout?client_id=${hosteduiClientId}&logout_uri=${loggedOutRedirectUrl}` | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment