{"id":21495597,"url":"https://github.com/kurozumi/auth0-eccube-plugin","last_synced_at":"2025-10-07T03:38:18.617Z","repository":{"id":47504539,"uuid":"297819737","full_name":"kurozumi/auth0-eccube-plugin","owner":"kurozumi","description":"This is a plugin that realizes social login with EC-CUBE4 using Auth0.This is an unofficial plugin, so please use it at your own risk.","archived":false,"fork":false,"pushed_at":"2025-05-08T02:32:48.000Z","size":2278,"stargazers_count":5,"open_issues_count":6,"forks_count":4,"subscribers_count":2,"default_branch":"4.2","last_synced_at":"2025-07-16T13:23:40.980Z","etag":null,"topics":["auth0","authentication","ec-cube","ec-cube4","eccube4","symfony"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-2.1","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kurozumi.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":"Security/Authenticator/Auth0Authenticator.php","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-09-23T01:37:20.000Z","updated_at":"2025-05-08T02:32:52.000Z","dependencies_parsed_at":"2024-05-20T13:52:23.384Z","dependency_job_id":"f9dc9e05-b6b4-436e-a53b-b74b94e996d6","html_url":"https://github.com/kurozumi/auth0-eccube-plugin","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/kurozumi/auth0-eccube-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kurozumi%2Fauth0-eccube-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kurozumi%2Fauth0-eccube-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kurozumi%2Fauth0-eccube-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kurozumi%2Fauth0-eccube-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kurozumi","download_url":"https://codeload.github.com/kurozumi/auth0-eccube-plugin/tar.gz/refs/heads/4.2","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kurozumi%2Fauth0-eccube-plugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278717080,"owners_count":26033535,"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-07T02:00:06.786Z","response_time":59,"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":["auth0","authentication","ec-cube","ec-cube4","eccube4","symfony"],"created_at":"2024-11-23T16:12:26.197Z","updated_at":"2025-10-07T03:38:18.603Z","avatar_url":"https://github.com/kurozumi.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Auth0(ソーシャルログイン)プラグイン\n\n![Auth0ログインページ](https://github.com/kurozumi/auth0-eccube-plugin/blob/images/auth0-login-page.png)\n\n[Auth0](https://auth0.com/jp/) を使用して EC-CUBE4でソーシャルログインを実現するプラグインです。  \n[Auth0](https://auth0.com/jp/) を使用するとGoogleやFacebook、Apple、LineなどのアカウントでEC-CUBE4.2にログインできるようになります。\n\n#### ご注意!\n\nメールアドレスが取得できるサービスのみ利用可能です。  \nTwitterは現在メールアドレスを提供していないので利用できません。\n\n非公式プラグインですのでご利用は自己責任でお願いいいたします。  \n本プラグインを導入したことによる不具合や被った不利益につきましては一切責任を負いません。\n\n## インストールに失敗する場合\n\n以下のコマンドをk実行してください。\n\n```\ncomposer config --no-plugins allow-plugins.php-http/discovery false\n```\n\n## Auth0の設定例\n\nApplication Login URI、Allowed Callback URLs、Allowed Logout URLsは任意のURLを設定してください。\n\n![FireShot Capture 452 - Application Details - manage auth0 com](https://user-images.githubusercontent.com/1731851/206898004-bb9b2c7d-51d4-4308-80b8-5c59b6aeeedc.png)\n\n## ソーシャルプロバイダーのClientIDとClientSecretをAuth0に登録\n\n### ご注意！\n\nAuth0のClientIDとClientSecretを使用すれば、ソーシャルプロバイダーのClientIDとClientSecretを登録せずにソーシャルログインのテストができます。  \n本番環境では必ず各ソーシャルプロバイダー独自のClientIDとClientSecretをAuth0に登録してください。\n\n### ソーシャルプロバイダーのClientIDとClientSecretの発行方法\n\nソーシャルプロバイダーに登録するウェブサイトURLとコールバックURLはAuth0で発行されたURLを登録してください。  \nウェブサイトURL例：https://a-zumi.us.auth0.com  \nコールバックURL例：https://a-zumi.us.auth0.com/login/callback\n\n### ソーシャルプロバイダーのClientIDとClientSecretをAuth0に登録\n\n発行されたソーシャルプロバイダーのClientIDとClientSecretをAuth0に登録してください。\n\n### 設定例\n\n- [Googleアカウントの連携方法](https://github.com/kurozumi/auth0-eccube-plugin/issues/30)\n- [GitHubアカウントの連携方法](https://github.com/kurozumi/auth0-eccube-plugin/issues/22)\n- [LINEアカウントの連携方法](https://github.com/kurozumi/auth0-eccube-plugin/issues/24)\n- [Amazonアカウントの連携方法](https://github.com/kurozumi/auth0-eccube-plugin/issues/26)\n\n## インストールと有効化\n\n```\nbin/console eccube:composer:require knpuniversity/oauth2-client-bundle\nbin/console eccube:composer:require riskio/oauth2-auth0\nbin/console eccube:composer:require auth0/auth0-php\n\ngit clone git@github.com:kurozumi/auth0-eccube-plugin.git app/Plugin/Auth0\n\nbin/console eccube:plugin:install --code Auth0\nbin/console eccube:plugin:enable --code Auth0\n```\n\n## Auth0で発行されたClientIDとClientSecret、DomainをEC-CUBEに登録\n\n[Auth0](https://auth0.com/jp/) でClientIdとClientSecret、Domainを取得して、管理画面で設定してください。\n\n![Auth0設定画面](https://github.com/kurozumi/auth0-eccube-plugin/blob/images/admin-auth0-setting.png)\n\n## ソーシャルログインページへのリンク設定\n\n```\n\u003ca href=\"{{ url('auth0_connect') }}\"\u003eソーシャルログイン\u003c/a\u003e\n```\n\n## 利用可能なソーシャルログイン一覧\n\n![利用可能なソーシャルログイン一覧](https://user-images.githubusercontent.com/1731851/207563214-54d26c6e-3469-4991-90f9-9e7d51ddd3b7.png)\n\n## ユーザー名・パスワード認証停止\n\nユーザー名・パスワード認証（Username-Password-Authentication）は [Auth0](https://auth0.com/jp/) の管理画面で停止してください。\n\n![ユーザー名・パスワードログイン停止](https://github.com/kurozumi/auth0-eccube-plugin/blob/images/disable-username-password-auth.png)\n\n## ソーシャルログインサービスの追加\n\n[Auth0のCustom Social Connectionを利用してYahoo! JAPANと接続する](https://qiita.com/hisashiyamaguchi/items/93516e371bbe279fffb9)\n\n## Passkeyの利用\n\nAuth0はPasskeyでログインするよう設定することが可能です。  \nただし、Auth0ではパスワードの無効化がまだ未対応なので、  \nAuth0のログイン画面でメールアドレス・パスワード認証の項目が表示されます。  \n\n## Auth0 で Passkey を登録する流れ\n\n1. Auth0 のログイン画面でサインアップをクリック\n2. メールアドレスを入力して送信\n3. デバイスにパスキーを作成\n4. メールアドレス認証のメールが届くのでメール本文の記載されている認証リンクをクリックして認証\n5. メールアドレス認証完了ページが表示されるので表示されているボタンをクリック\n6. パスキーを使用すると EC-CUBE の会員登録画面へ進みます\n7. EC-CUBE の会員登録を完了してください\n\n### データベース接続を作成\n\n1. 認証＞データベースページでデータベース接続を作成をクリック\n2. 接続名入力、ユーザー識別子としてメールをオンにして作成\n3. データベースの認証方法でパスキーをオンにする\n\n### アプリケーションの作成\n\n1. アプリケーション＞アプリケーションページでアプリケーションを作成\n2. 名前入力、一般的なWebアプリケーションを選択して作成\n3. アプリケーションの設定で各種URLを設定して保存\n    - ログインURL：ドメイン/auth0/connect\n    - Callback URL：ドメイン/auth0/connect/callback\n    - ログアウトURL：ドメイン\n4. アプリケーションの接続で作成したデータベースをオンにする\n\n### 認証プロファイル\n\n1. 認証＞認証プロファイルで 「**Identifier First**」 を選択\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkurozumi%2Fauth0-eccube-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkurozumi%2Fauth0-eccube-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkurozumi%2Fauth0-eccube-plugin/lists"}