-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
概要
EcAuth の Client に登録する redirect_uri を、プラグインの設定画面に表示する。
背景
パスキー認証フローの /b2b/passkey/authenticate/verify で、EcAuth API が redirect_uri を Client の許可リストと照合する。現状、プラグインが生成する redirect_uri(/ecauth/callback の絶対 URL)がどの値になるかユーザーには分かりにくく、EcAuth 側への登録漏れでエラーになる。
"error_description": "redirect_uri が許可されていません。"
対応内容
- 設定画面(
config.twig)に、現在のサイトから生成されるredirect_uriを読み取り専用で表示する - 値は
url('ecauth_callback', [], ABSOLUTE_URL)で生成されるもの(例:https://shop.example.com/ecauth/callback) - 「この URL を EcAuth の Client 設定に登録してください」という案内文を併記する
表示例
Redirect URI(EcAuth Client に登録してください)
┌──────────────────────────────────────────────────┐
│ https://shop.example.com/ecauth/callback [📋] │
└──────────────────────────────────────────────────┘
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels