Overview
Implement Crove OS Hybrid Sync Standard (JIT OIDC Login + Real-time Webhooks) for Crove Cal.
Tasks
- OIDC Provider Configuration (JIT Sync):
- Add DOS.Me OIDC provider into NextAuth options (packages/features/auth/lib/next-auth-options.ts).
- Extract user identity (sub, email,
ame, picture) and organizations claim on login.
- Provision/upsert local User, Profile, and Team (Organization) + Membership.
- Webhook Sync Endpoint (Real-time Sync):
- Create route �pps/web/app/api/webhooks/dos-org-sync/route.ts (or Pages router handler) with HMAC SHA-256 verification (X-DOS-Signature).
- Handle events: org.created, org.updated, org.deleted, org.member_added, org.member_removed.
- Update Team and Membership models in cal schema accordingly.
- UI Integration:
- Add DOS.Me ID login button on /auth/login.
Overview
Implement Crove OS Hybrid Sync Standard (JIT OIDC Login + Real-time Webhooks) for Crove Cal.
Tasks
ame, picture) and organizations claim on login.