Tweak to enable OSM token bridge by default#59
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughThe OSM token bridge now uses explicit enablement and stable OAuth client configuration, automatically provisions required OSM users and applications, mirrors tokens with derived expiry data, and applies the same flag to revocation. Unit tests cover provisioning, identity wiring, missing email, disabled operation, and rollback behavior. ChangesOSM Token Bridge
Estimated code review effort: 4 (Complex) | ~45 minutes Sequence Diagram(s)sequenceDiagram
participant Caller
participant _bridge_token_to_osm
participant OSMDatabase
Caller->>_bridge_token_to_osm: Present JWT
_bridge_token_to_osm->>OSMDatabase: Ensure system user and caller user
_bridge_token_to_osm->>OSMDatabase: Ensure OAuth application by client UID
_bridge_token_to_osm->>OSMDatabase: Upsert mirrored access token
_bridge_token_to_osm-->>Caller: Continue authentication
Poem
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary