Skip to content

SSO: Login/Logout#124

Draft
louispt1 wants to merge 1 commit into
masterfrom
sso
Draft

SSO: Login/Logout#124
louispt1 wants to merge 1 commit into
masterfrom
sso

Conversation

@louispt1

@louispt1 louispt1 commented Jul 6, 2026

Copy link
Copy Markdown
Member

Context

Replace next-auth with the shared etm_session JWT cookie

  • Drops next-auth entirely
  • Adds pages/api/me.ts which verifies the cookie's signature via jose's remote JWKS /oauth/discovery/keys
  • Audience is currently unchecked (would need to define client_uri in env to handle that
  • Adds useCurrentUser/useSessionKeeper hooks so the UI polls its own identity and schedules a refresh before the cookie expires
  • Updates Connection.ts/scenario API routes to send the cookie instead of a next-auth bearer token
  • Tests with Jest for api/me that needed some config for jose!

Related - Goes with the other SSO: Login/Logout PRs:

identity rails
etengine
etmodel
myetm
collections
ETLauncher

Checklist

  • I have tested these changes --> NOTE: These changes were tested on the ETLauncher bridge network. Testing the federated cookie setup on the standard dev setup will not work because cookies cannot be federated across localhost as a domain
  • I have updated documentation as needed (comments only)
  • I have tagged the relevant people for review

@netlify

netlify Bot commented Jul 6, 2026

Copy link
Copy Markdown

Deploy Preview for beta-collections ready!

Name Link
🔨 Latest commit e4594aa
🔍 Latest deploy log https://app.netlify.com/projects/beta-collections/deploys/6a4bb363e5160c0008b54445
😎 Deploy Preview https://deploy-preview-124--beta-collections.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant