{"id":13479160,"url":"https://github.com/marmelab/ra-example-oauth","last_synced_at":"2025-07-07T01:38:52.387Z","repository":{"id":43160137,"uuid":"210864491","full_name":"marmelab/ra-example-oauth","owner":"marmelab","description":"An example of OpenID Connect implementation on React Admin","archived":false,"fork":false,"pushed_at":"2023-06-21T13:17:17.000Z","size":5500,"stargazers_count":53,"open_issues_count":28,"forks_count":18,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-06-30T21:53:30.482Z","etag":null,"topics":["react","react-admin"],"latest_commit_sha":null,"homepage":"https://marmelab.com/ra-example-oauth/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/marmelab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-09-25T14:23:45.000Z","updated_at":"2024-12-21T05:31:00.000Z","dependencies_parsed_at":"2024-01-16T06:21:03.952Z","dependency_job_id":"8339f946-5cb6-46e9-86df-9d985a4c45b8","html_url":"https://github.com/marmelab/ra-example-oauth","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/marmelab/ra-example-oauth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marmelab%2Fra-example-oauth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marmelab%2Fra-example-oauth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marmelab%2Fra-example-oauth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marmelab%2Fra-example-oauth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marmelab","download_url":"https://codeload.github.com/marmelab/ra-example-oauth/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marmelab%2Fra-example-oauth/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263999349,"owners_count":23542022,"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":["react","react-admin"],"created_at":"2024-07-31T16:02:10.591Z","updated_at":"2025-07-07T01:38:52.369Z","avatar_url":"https://github.com/marmelab.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# ra-example-oauth\n\nThis example shows how to support OAuth in a react-admin v4 application.\n\n## Requirements\n\n1. A google application: ret up a project in the [Google API Console](https://console.developers.google.com/) to obtain OAuth 2.0 credentials, set a redirect URI, and (optionally) customize the branding information that your users see on the user-consent screen\n2. [Configure OAuth](https://developers.google.com/identity/openid-connect/openid-connect) for this application with `http://localhost:5173/auth-callback` as the authorized origin and `http://localhost:5173/auth-callback` as the authorized redirect URI. Copy the client ID and secret.\n3. Rename  the `.env.template` files in both the `app` and `api` directory and update the following variables:\n    - `VITE_OIDC_CLIENT_ID`: Paste the client ID you copied at step 2\n    - `OIDC_CLIENT_ID`: Paste the client ID you copied at step 2\n    - `OIDC_CLIENT_SECRET`: Paste the secret you copied at step 2\n\n## Installation\n\nRun the following command:\n\n```sh\nmake install\n```\n\n## Development\n\n1. Start the API by running:\n    ```sh\n    make run-api\n    ```\n\n2. In another terminal, start the application by running:\n    ```sh\n    make run-app\n    ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarmelab%2Fra-example-oauth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarmelab%2Fra-example-oauth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarmelab%2Fra-example-oauth/lists"}