feat(dev-sso): point the SPA OIDC issuer at bunyip-api #67
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/dev-sso-bunyip-issuer"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
After the bunyip-as-OP cutover the OIDC issuer is bunyip-api, not mokosh-server. Bake
MOKOSH_OIDC_ISSUER=https://${USER}-bunyip-api.a8n.runso the SPA runs its PKCE flow against bunyip-api's/oauth2/*; mokosh-server is only a Resource Server for the resultingat+jwt. Mirrors staging, wheremsp.<tld>derives issuerapi.<tld>(bunyip-api).Changes
compose.dev-sso.yml:MOKOSH_OIDC_ISSUER-> bunyip-api; refresh the client-id comment to point atjust register-dev-clients(bunyip repo). The SPA's API calls stay on the same-origin/api/v1dev proxy (fetch.rs::api_basereturns/api/v1for any non-msp.host), so no cross-origin change is needed.MOKOSH_OIDC_CLIENT_IDis set per-developer in.env.Companion PRs
feat/dev-sso-bunyip-as-op(the OP).feat/dev-sso-rs-trust-bunyip(Resource Server env).Verification
Browser flow: SPA authenticates at bunyip-api (reachable on nebula-secure), then calls same-origin
/api/v1/*proxied to mokosh-server, which validates the bunyip token. The scripted login -> token -> create-company chain returns 200 end to end.🤖 Generated with Claude Code