{"id":20844573,"url":"https://github.com/pushpabrol/example-extension","last_synced_at":"2025-03-12T11:17:21.207Z","repository":{"id":39119821,"uuid":"266141270","full_name":"pushpabrol/example-extension","owner":"pushpabrol","description":null,"archived":false,"fork":false,"pushed_at":"2023-01-24T02:40:03.000Z","size":1618,"stargazers_count":0,"open_issues_count":26,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-19T04:34:11.464Z","etag":null,"topics":[],"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}},"created_at":"2020-05-22T15:14:31.000Z","updated_at":"2020-05-23T22:49:20.000Z","dependencies_parsed_at":"2023-02-13T12:45:20.742Z","dependency_job_id":null,"html_url":"https://github.com/pushpabrol/example-extension","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pushpabrol%2Fexample-extension","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pushpabrol%2Fexample-extension/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pushpabrol%2Fexample-extension/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pushpabrol%2Fexample-extension/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pushpabrol","download_url":"https://codeload.github.com/pushpabrol/example-extension/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243205234,"owners_count":20253427,"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":[],"created_at":"2024-11-18T02:10:01.597Z","updated_at":"2025-03-12T11:17:21.187Z","avatar_url":"https://github.com/pushpabrol.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Auth0 Example Extension\n\n## Running in Production\n\n```bash\nnpm install\nnpm run client:build\nnpm run serve:prod\n```\n\n## Running in Development\n\nTo run the extension:\n\n```bash\nnpm install\nnpm run build\nnpm run serve:dev\n```\n\n### Configuration\n\nCreate the configuration file under `./server/config.json`:\n\n```json\n{\n  \"EXTENSION_CLIENT_ID\": \"B3SU01ohpJnyGBqEU7F42QW4TuS6nnCh\",\n  \"EXTENSION_SECRET\": \"Random Secret\",\n  \"WT_URL\": \"http://localhost:3001\",\n  \"PUBLIC_WT_URL\": \"http://localhost:3001\",\n  \"AUTH0_RTA\": \"https://auth0.auth0.com\",\n  \"AUTH0_DOMAIN\": \"{tenant-name.region}.auth0.com\",\n  \"AUTH0_CLIENT_ID\": \"GENERIC_CLIENT_ID\",\n  \"AUTH0_CLIENT_SECRET\": \"GENERIC_CLIENT_SECRET\"\n}\n```\n\nAs you can see, there are 2 clients involved here.\n\n**Management API Client**\n\n\nRelevant properties for this section: `AUTH0_CLIENT_ID` and `AUTH0_CLIENT_SECRET`\n\nThis client will be used to interact with the Management API (eg: load users, ....).\n\n\n**Client for End Users**\n\nRelevant properties for this section: `EXTENSION_CLIENT_ID`.\n\nThis extension allows end users to login, not dashboard administrators. This means that we need to secure this extension in the same way that we secure other applications in Auth0.\n\n 1. Create a \"Single Page Application\" in Clients\n 2. Put `http://localhost:3000/login` as an `Allowed Callback URL`.\n 3. Add the Client ID to the `EXTENSION_CLIENT_ID` setting.\n 4. Choose a connection (eg: DB connection) and only enable that one in your Client (Connections tab).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpushpabrol%2Fexample-extension","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpushpabrol%2Fexample-extension","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpushpabrol%2Fexample-extension/lists"}