{"id":20844495,"url":"https://github.com/pushpabrol/auth0-cognito-custom-db","last_synced_at":"2026-04-30T07:33:52.034Z","repository":{"id":92528949,"uuid":"241144748","full_name":"pushpabrol/auth0-cognito-custom-db","owner":"pushpabrol","description":"custom database connection scripts for cognito in Auth0","archived":false,"fork":false,"pushed_at":"2020-02-17T15:48:20.000Z","size":2,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-27T10:08:17.144Z","etag":null,"topics":["auth0","cognito","cognito-user-pool","custom-database","migration"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pushpabrol.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-02-17T15:42:53.000Z","updated_at":"2023-02-02T05:40:57.000Z","dependencies_parsed_at":"2023-08-21T07:30:54.265Z","dependency_job_id":null,"html_url":"https://github.com/pushpabrol/auth0-cognito-custom-db","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pushpabrol/auth0-cognito-custom-db","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pushpabrol%2Fauth0-cognito-custom-db","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pushpabrol%2Fauth0-cognito-custom-db/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pushpabrol%2Fauth0-cognito-custom-db/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pushpabrol%2Fauth0-cognito-custom-db/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pushpabrol","download_url":"https://codeload.github.com/pushpabrol/auth0-cognito-custom-db/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pushpabrol%2Fauth0-cognito-custom-db/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262235784,"owners_count":23279567,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["auth0","cognito","cognito-user-pool","custom-database","migration"],"created_at":"2024-11-18T02:09:48.288Z","updated_at":"2026-04-30T07:33:51.957Z","avatar_url":"https://github.com/pushpabrol.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Custom database connection with Cognito \u0026 Migration turned on\n\nThis repo contains the files and insturctions required to setup Cognito as a custom database connection with Auth0.\n\n## Cognito Setup\n\n- Create a user pool in aws cognito\n    - For this user pool create an app client\n        - This client should have no client secret\n        - Make sure to check `Enable username password auth for admin APIs for authentication (ALLOW_ADMIN_USER_PASSWORD_AUTH)`\n        - Make sure to select `Legacy` under `Prevent User Existence Errors`\n- Make a note of the following properties\n    - `UserPoolId` - ID of the user pool\n    - `ClientID` - Client ID of the application created above\n    - `region` - AWS Region\n    - `accessKeyId` - Access Key ID\n    - `secretAccessKey` - Secret Access Key\n\n\n## Auth0 Setup\n\n- Create a database connection\n    - Create a custom database connection and choose the name you want to use for it\n    - Turn on the toggle `Use my own database` under the `Custom Database` tab\n    - Under the database `settings` tab turn on toggles for\n        - `Requires Username`\n        - `Import Users to Auth0` - This enables migration at login with Cognito\n    - Go back to the `Custom Database` tab \n        - Copy contents of `auth0LoginDirect.js` under the `Login` script\n        - Copy contents of `auth0GetUserDirect.js` under the `Get User` script\n    - Make sure you save both the scripts above\n    - Remain on the same tab and scroll down to `settings`\n        - Set the Confgiuration variables\n            - accessKeyId : your access key for AWS\n            - secretAccessKey: your secret key for AWS\u003e\n            - region : region of aws\n            - UserPoolId : Id of the User Pool\n            - ClientId : client id of the app created in cognito\n\n    - At this point you have everything setup for the connection\n    - Enable the connection in Auth0 by enabling this connection on an application\n    - Test login and get user scripts\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpushpabrol%2Fauth0-cognito-custom-db","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpushpabrol%2Fauth0-cognito-custom-db","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpushpabrol%2Fauth0-cognito-custom-db/lists"}