{"id":20215643,"url":"https://github.com/casdoor/casdoor-firebase-example","last_synced_at":"2026-04-07T16:31:23.328Z","repository":{"id":192167197,"uuid":"683668040","full_name":"casdoor/casdoor-firebase-example","owner":"casdoor","description":"Google Firebase web app example for Casdoor","archived":false,"fork":false,"pushed_at":"2023-09-02T03:35:06.000Z","size":1183,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-03T11:19:48.394Z","etag":null,"topics":["auth","authentication","authn","casdoor","firebase","google","iam","javascript","js","oauth","oidc","react","sso","ts","typescript"],"latest_commit_sha":null,"homepage":"https://github.com/casdoor/casdoor","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/casdoor.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}},"created_at":"2023-08-27T10:19:55.000Z","updated_at":"2025-01-28T03:28:05.000Z","dependencies_parsed_at":"2023-09-03T04:20:53.261Z","dependency_job_id":null,"html_url":"https://github.com/casdoor/casdoor-firebase-example","commit_stats":null,"previous_names":["casdoor/casdoor-firebase-example"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/casdoor/casdoor-firebase-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casdoor%2Fcasdoor-firebase-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casdoor%2Fcasdoor-firebase-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casdoor%2Fcasdoor-firebase-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casdoor%2Fcasdoor-firebase-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/casdoor","download_url":"https://codeload.github.com/casdoor/casdoor-firebase-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casdoor%2Fcasdoor-firebase-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31520413,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T16:28:08.000Z","status":"ssl_error","status_checked_at":"2026-04-07T16:28:06.951Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["auth","authentication","authn","casdoor","firebase","google","iam","javascript","js","oauth","oidc","react","sso","ts","typescript"],"created_at":"2024-11-14T06:23:46.078Z","updated_at":"2026-04-07T16:31:23.272Z","avatar_url":"https://github.com/casdoor.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# casdoor-firebase-example\n\nThis is a firebase project uses Casdoor as provider example.\n\n## How to run\n\n### 1. Create a firebase project\n\nGo to [Firebase Console](https://console.firebase.google.com/) to create a project.\n\n#### 1.1. Add Casdoor as provider\n\n![provider](assets/provider.png)\n\nYou need to enable \"Identity Platform\" feature first to enable OIDC integration on Firebase.\n\nSelect `OpenID Connect` in Custom providers, fill in the following information:\n\n| Name (in order) | Description                           | Example value                            |\n|-----------------|---------------------------------------|------------------------------------------|\n| Name            | Any be any string you would like      | casdoor                                  |\n| Client ID       | Client ID for the Casdoor application | 294b09fbc17f95daf2fe                     |\n| Issuer (URL)    | Casdoor server URL                    | https://door.casdoor.com                 |\n| Client Secret   | Client secret for Casdoor application | dd8982f7046ccba1bbd7851d5c1ece4e52bf039d |\n\n![oidc_config0](assets/oidc_config0.png)\n\nThe above examples values can be retrieved from Casdoor demo site: https://door.casdoor.com/applications/casbin/app-vue-python-example\n\n![oidc_config1](assets/oidc_config1.png)\n\n#### 1.2. Add callback url\n\nAdd Callback URL to Casdoor application Redirect URLs:\n\n![oidc_config2](assets/oidc_config2.png)\n\n![oidc_config3](assets/oidc_config3.png)\n\n#### 1.3. Copy project config\n\nCreate a `Web app` first:\n\n![firebase_config0](assets/firebase_config0.png)\n\nCopy your project config in project settings to `src/setting.js`. (the following config is our demo site, which can be used for testing. Change it to your own for production use)\n\n```javascript\nconst firebaseConfig = {\n  apiKey: \"AIzaSyDG8HGY9ULBqXPMIkYEdcOSm2_Yls1E5yY\",\n  authDomain: \"fb-casdoor.firebaseapp.com\",\n  projectId: \"fb-casdoor\",\n  storageBucket: \"fb-casdoor.appspot.com\",\n  messagingSenderId: \"174511522903\",\n  appId: \"1:174511522903:web:8649d465718acfac900f12\",\n  measurementId: \"G-8N504216FH\"\n};\n```\n\n![firebase_config](assets/firebase_config.png)\n\n### 2. Install dependencies\n\n```shell\nyarn install\n```\n\n### 3. Run\n\n```shell\nyarn start\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcasdoor%2Fcasdoor-firebase-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcasdoor%2Fcasdoor-firebase-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcasdoor%2Fcasdoor-firebase-example/lists"}