Add a shared OAuth 2.0 authorization and token exchange flow to JSS. This is the missing piece that unlocks three ecosystems:
OIDC already provides 90% of the OAuth 2.0 foundation. The gap is small.
GET /oauth/authorize ?client_id=<registered_client_id> &redirect_uri=https://app.example.com/callback &response_type=code &scope=read+write
Shows consent dialog, redirects with authorization code.
POST /oauth/token grant_type=authorization_code &code=<auth_code> &client_id=<client_id> &client_secret=<client_secret> &redirect_uri=https://app.example.com/callback
Returns Bearer token:
{ "access_token": "...", "token_type": "Bearer", "scope": "read write", "created_at": 1710000000 }
Add Bearer token verification to the existing token extraction pipeline in src/auth/token.js.
Add OAuth 2.0 authorize/token flow
Activity
Add OAuth 2.0 authorize/token flow