Read up my blog post why you might need this: https://medium.com/cloudstory/migrating-to-amazon-cognito-93255f008ef8
Refine Framework: https://refine.dev/
npm install
npm run dev
npm run build
npm run start
- Go to AWS Console - Cognito
- Create New User Pool
- Create new App Client -> This will create new OIDC Client
- Write down the Client ID and Secret and update configuration in oidcConfig in index.tsx
const oidcConfig = {
authority: "https://cognito-idp.<region>.amazonaws.com/ap-southeast-1_<pool-id>",
client_id: "<client-id from cognito console>",
client_secret: "<client-secret from cognito console>",
redirect_uri: window.location.origin,
scope: "openid email profile",
code_challenge_method:"S256",
code_challenge:"CODE_CHALLENGE"
};
- Find out the Client ID, Client Secret, and OIDC https end point (The endpoint will be the root domain as in https://root-domain/.well-known/openid-configuration)
- Update Client ID and Secreet configuration in oidcConfig in index.tsx
MIT