{"id":24964010,"url":"https://github.com/suinplayground/logto-connect-github-headless","last_synced_at":"2026-04-16T15:33:36.722Z","repository":{"id":274722062,"uuid":"923860751","full_name":"suinplayground/logto-connect-github-headless","owner":"suinplayground","description":"LogtoアカウントとGitHubアカウントのリンク機能を実装したサンプルアプリケーション","archived":false,"fork":false,"pushed_at":"2025-01-29T00:20:55.000Z","size":30,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-03-28T23:44:15.762Z","etag":null,"topics":["github","identity-management","logto","oauth","social-login"],"latest_commit_sha":null,"homepage":null,"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/suinplayground.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}},"created_at":"2025-01-29T00:19:22.000Z","updated_at":"2025-01-29T00:21:23.000Z","dependencies_parsed_at":"2025-01-29T01:25:09.430Z","dependency_job_id":"ecbaaa64-4dba-4a36-b95f-46982cd3610d","html_url":"https://github.com/suinplayground/logto-connect-github-headless","commit_stats":null,"previous_names":["suinplayground/logto-connect-github-headless"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/suinplayground/logto-connect-github-headless","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suinplayground%2Flogto-connect-github-headless","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suinplayground%2Flogto-connect-github-headless/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suinplayground%2Flogto-connect-github-headless/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suinplayground%2Flogto-connect-github-headless/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/suinplayground","download_url":"https://codeload.github.com/suinplayground/logto-connect-github-headless/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suinplayground%2Flogto-connect-github-headless/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281386589,"owners_count":26492014,"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","status":"online","status_checked_at":"2025-10-28T02:00:06.022Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["github","identity-management","logto","oauth","social-login"],"created_at":"2025-02-03T09:59:16.248Z","updated_at":"2025-10-28T05:04:59.378Z","avatar_url":"https://github.com/suinplayground.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Logto Social Identity Linking\n\nこのアプリケーションは、LogtoアカウントとGitHubアカウントのリンク機能を提供します。\n\n## 前提条件\n\n- Docker と Docker Compose\n- Bun.js\n- Git\n- GitHub アカウント\n\n## セットアップ手順\n\n### 1. GitHub App の作成\n\nGitHub App を作成して、必要な認証情報を取得します。\n\n#### オプション1: GitHub App Creator（オンライン）を使用\n\n1. 以下のURLにアクセスします：\n\n```\nhttps://github-app-creator.vercel.app/?appName=logto-test\u0026url=http://localhost:3000\u0026callbackUrl1=http://localhost:3001/callback/github\u0026callbackUrl2=http://localhost:3000/step3\n```\n\n#### オプション2: GitHub App Creator（ローカル）を使用\n\n1. [GitHub App Creator](https://github.com/suin/github-app-creator) をダウンロードしてローカルで実行\n2. 以下のURLにアクセス：\n\n```\nhttp://localhost:3000?appName=logto-test\u0026url=http://localhost:3000\u0026callbackUrl1=http://localhost:3001/callback/github\u0026callbackUrl2=http://localhost:3000/step3\n```\n\n#### 共通の手順\n\n1. フォームの「Organization」フィールドに、GitHub App を作成したい Organization を指定\n2. 「Submit」をクリックし、GitHub の認証ページでログイン\n3. GitHub App の作成を完了\n4. 表示された認証情報を `.env` ファイルに設定：\n\n```env\nGITHUB_APP_CLIENT_ID=\u003c表示されたClient ID\u003e\nGITHUB_APP_CLIENT_SECRET=\u003c表示されたClient Secret\u003e\n```\n\n### 2. アプリケーションの起動\n\n1. Docker コンテナを起動：\n\n```bash\ndocker-compose up -d\n```\n\n2. `.env` ファイルに以下の設定が存在することを確認：\n\n```env\nADMIN_TENANT_SECRET=\u003cシークレット値\u003e\nDEFAULT_TENANT_SECRET=\u003cシークレット値\u003e\n```\n\n3. サーバーを起動：\n\n```bash\nbun app.ts\n```\n\n## アプリケーションの使用\n\n1. ブラウザで http://localhost:3000 にアクセス\n2. 「Sign In」をクリック\n3. 以下の認証情報でログイン：\n   - ユーザー名: `test`\n   - パスワード: `test`\n4. 「Menu」→「Start To Link GitHub Account」を選択\n5. 画面の指示に従って GitHub アカウントのリンク処理を完了\n\n## トラブルシューティング\n\n### アプリケーションのリセット\n\nすべてのデータをリセットする場合：\n\n```bash\ndocker compose down\n```\n\n### よくある問題\n\n- **GitHub App の認証エラー**: `.env` ファイルの Client ID と Client Secret が正しく設定されているか確認\n- **アプリケーションにアクセスできない**: Docker コンテナが正常に起動しているか確認\n- **ログインできない**: デフォルトの認証情報（test/test）が正しく入力されているか確認\n\n### ログの確認\n\n問題が発生した場合は、以下のコマンドでログを確認できます：\n\n```bash\ndocker compose logs\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuinplayground%2Flogto-connect-github-headless","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsuinplayground%2Flogto-connect-github-headless","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuinplayground%2Flogto-connect-github-headless/lists"}