@@ -51,20 +51,20 @@ Local preview:
5151
5252Supported env vars:
5353
54- - ` MFE_PREVIEW_AUTH_ISSUER_URL ` (preview login default, usually ` https://auth.suncoast.systems ` )
55- - ` MFE_PREVIEW_AUTH_CLIENT_ID ` (preview login client id)
56- - ` MFE_PREVIEW_AUTH_AUDIENCE ` (preview login audience, optional)
57- - ` MFE_PREVIEW_AUTH_SCOPE ` (preview login scope, default ` openid profile email ` )
54+ - ` MFE_PREVIEW_AUTH_GATEWAY_URL ` (preview login gateway, usually ` https://login.suncoast.systems ` )
55+ - ` MFE_PREVIEW_AUTH_APP_SLUG ` (registered app slug in auth-gateway, for example ` example-mfe-preview ` )
56+ - ` MFE_PREVIEW_AUTH_CODE_PARAM ` (query key returned by gateway callback, default ` gateway_code ` )
5857- ` MFE_PREVIEW_PORT ` (dev only)
5958
6059## Local Preview Login
6160
62- The local preview page (` /preview/ ` ) now includes a login helper that runs OAuth/OIDC code+PKCE in-browser :
61+ The local preview page (` /preview/ ` ) now includes a login helper that uses the shared auth-gateway flow :
6362
64- 1 . Fill ` Auth Issuer URL ` and ` Auth Client ID ` (or set ` MFE_PREVIEW_AUTH_* ` env vars).
63+ 1 . Fill ` Auth Gateway URL ` and ` Auth App Slug ` (or set ` MFE_PREVIEW_AUTH_* ` env vars).
65642 . Click ` Login ` on the preview page.
66- 3 . After redirect back to ` /preview/ ` , the access token is auto-filled into ` Auth Token ` .
67- 4 . Click ` Apply / Remount ` to use that token for GraphQL HTTP/WS requests.
65+ 3 . Gateway returns to ` /preview/ ` with a one-time code (` gateway_code ` by default).
66+ 4 . Preview exchanges that code at ` /v1/auth/exchange ` and auto-fills ` Auth Token ` .
67+ 5 . Click ` Apply / Remount ` to use that token for GraphQL HTTP/WS requests.
6868
6969If your auth provider returns ` access_token ` in URL hash (implicit flow), the preview page will capture that too.
7070
0 commit comments