chore(dev): stub OAuth IdP tooling for local mobile SSO testing #91
Reference in New Issue
Block a user
No description provided.
Delete Branch "feat/m10-native-sso-fix"
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?
Adds dev-only tooling to exercise the native mobile SSO bridge locally. No production, API, schema, or route changes — everything lives under
scripts/dev/and is never imported by the server. The M10 Android admin screens consume the existing/api/v1/admin/**routes, so no backend change was needed there either.Why
Dev environments have no real OAuth provider configured, so
GET /auth/providersreturns[], the app renders no SSO buttons, and the native flow can't be tested. This stands up a stub IdP + seed + headless smoketest.scripts/dev/stub-idp.js— dependency-free stub OAuth2/OIDC IdP (authorize picker → token → userinfo); DEV ONLY, signs in anyone. Picker page carries a mobile viewport meta so it renders correctly in an Android Custom Tab.seed-sso-provider.js— registers adevstubauth_providersrow pointing at the stub and pre-links each principal'ssubto a dev account (SSO is link-only).sso-bridge-smoketest.js— drives the whole app flow headless (PKCE →/auth/mobile/sso/start→ IdP → callback → deep link →/auth/mobile/sso/exchange) and asserts a bearer pair.README.md— host + emulator usage.Verified end-to-end against the local site (player + admin principals) and used to drive the on-device emulator QA of the Android M10 work.
Companions
RunicGateway/Android-appFail fast when JWT_SECRET is missing in production (closes #14) (#21)RunicGateway/docs[SECURITY AUDIT] Session/token revocation is a non-functional stub — logout and password change do not invalidate existing JWTs (#30)AI disclosure (org policy): authored with Claude Code (Claude Opus); AI-authored commits carry a
Co-Authored-By: Claudetrailer.🤖 Generated with Claude Code
https://claude.ai/code/session_01NgyHnrNa8WwG3doxvxjuCr