{"id":37467719,"url":"https://github.com/hosomi/auth0-angular","last_synced_at":"2026-01-16T07:11:51.888Z","repository":{"id":37018265,"uuid":"303745651","full_name":"hosomi/auth0-angular","owner":"hosomi","description":"Auth0 - Angular","archived":false,"fork":false,"pushed_at":"2025-08-09T09:52:34.000Z","size":1659,"stargazers_count":0,"open_issues_count":11,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-09T11:31:26.958Z","etag":null,"topics":["angular","auth0","azure-static-web-apps"],"latest_commit_sha":null,"homepage":"https://ambitious-bush-0cbc8790f.azurestaticapps.net/","language":"TypeScript","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/hosomi.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-10-13T15:21:51.000Z","updated_at":"2022-01-03T09:56:17.000Z","dependencies_parsed_at":"2024-08-21T23:36:23.354Z","dependency_job_id":"bb5c8a2a-6b63-46c0-a89d-70c28a5cd67d","html_url":"https://github.com/hosomi/auth0-angular","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hosomi/auth0-angular","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hosomi%2Fauth0-angular","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hosomi%2Fauth0-angular/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hosomi%2Fauth0-angular/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hosomi%2Fauth0-angular/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hosomi","download_url":"https://codeload.github.com/hosomi/auth0-angular/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hosomi%2Fauth0-angular/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28478037,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T06:30:42.265Z","status":"ssl_error","status_checked_at":"2026-01-16T06:30:16.248Z","response_time":107,"last_error":"SSL_read: 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":["angular","auth0","azure-static-web-apps"],"created_at":"2026-01-16T07:11:51.805Z","updated_at":"2026-01-16T07:11:51.878Z","avatar_url":"https://github.com/hosomi.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Auth0 - Angular\n\nこのリポジトリは、Auth0 を使用して認証を実装した Angular アプリケーションのサンプルです。\n\n:link: [Auth0](https://auth0.com/jp/)  \n:link: [Angular](https://angular.jp/)  \n\n\n## env \n\n* ng version\n\n```powershell\nPS auth0-angular\u003e ng version\n\n     _                      _                 ____ _     ___\n    / \\   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|\n   / △ \\ | '_ \\ / _` | | | | |/ _` | '__|   | |   | |    | |\n  / ___ \\| | | | (_| | |_| | | (_| | |      | |___| |___ | |\n /_/   \\_\\_| |_|\\__, |\\__,_|_|\\__,_|_|       \\____|_____|___|\n                |___/\n\n\nAngular CLI: 18.2.20\nNode: 18.13.0\nPackage Manager: npm 10.5.0\nOS: win32 x64\n\nAngular: 18.2.13\n... animations, common, compiler, core, forms, platform-browser\n... platform-browser-dynamic, router\n\nPackage                         Version\n---------------------------------------------------------\n@angular-devkit/build-angular   18.2.20\n@angular/cli                    18.2.20\n@angular/compiler-cli           18.2.13\nrxjs                            7.5.6\ntypescript                      5.4.5\n```\n\n\n## 1. セットアップ\n\n### 1.1 Auth0 の設定\n\nAuth0 ダッシュボードで新しいアプリケーションを作成し、以下の設定を行います。\n\n- **Application Type**: Single Page Application\n\nアプリケーション設定の以下の項目を後で使用するために控えておきます。\n- **Domain**\n- **Client ID**\n\n### 1.2 アプリケーションの設定\n\n次に、Angular アプリケーションで Auth0 の認証情報を設定します。プロジェクトの `src/environments/environment.ts` ファイルを開き、Auth0ダッシュボードから取得した **Domain** と **Client ID** を設定してください。\n\n```typescript:src/environments/environment.ts\nexport const environment = {\n  production: false,\n  auth: {\n    domain: 'YOUR_AUTH0_DOMAIN',\n    clientId: 'YOUR_AUTH0_CLIENT_ID',\n    redirectUri: 'http://localhost:4200',\n  },\n};\n```\n\n### 1.3 Auth0 ダッシュボードのコールバックURL設定\n\nAuth0 ダッシュボードに戻り、アプリケーション設定で以下のURLを設定します。これにより、認証後のリダイレクトとログアウトが正しく機能します。\n\n- **Allowed Callback URLs**: `http://localhost:4200`\n- **Allowed Logout URLs**: `http://localhost:4200`\n- **Allowed Web Origins**: `http://localhost:4200`\n\nもし本番環境（`https://ambitious-bush-0cbc8790f.azurestaticapps.net`）でアプリケーションを動作させる場合は、そちらのURLも同様に各項目へ追加する必要があります。\n\n---\n\n:link: [Auth0 Angular SDK Quickstarts: Login](https://auth0.com/docs/quickstart/spa/angular/interactive)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhosomi%2Fauth0-angular","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhosomi%2Fauth0-angular","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhosomi%2Fauth0-angular/lists"}