Skip to content

cloudstorydev/refine-oidc-provider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Read up my blog post why you might need this: https://medium.com/cloudstory/migrating-to-amazon-cognito-93255f008ef8

Refine Auth Provider for OIDC / AWS Cognito

Refine Framework: https://refine.dev/

Available Scripts

Install dependency

    npm install

Running the development server.

    npm run dev

Building for production.

    npm run build

Running the production server.

    npm run start

AWS Cognito Setup

  • 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"

 };

Other OIDC Setup

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages