Skip to content

Add ODIC Back-Channel Logout#304

Merged
DecDuck merged 26 commits into
Drop-OSS:developfrom
Huskydog9988:oidc-logout
Jan 19, 2026
Merged

Add ODIC Back-Channel Logout#304
DecDuck merged 26 commits into
Drop-OSS:developfrom
Huskydog9988:oidc-logout

Conversation

@Huskydog9988
Copy link
Copy Markdown
Contributor

Let an ODIC provider sign out users. Also attempted to make the server more spec compliant by verifying responses and enforcing HTTPS for providers by default.

@DecDuck
Copy link
Copy Markdown
Member

DecDuck commented Jan 4, 2026

Uh, whoops. Literally just heavily modified the session system for MFA. I'll take a look and see what works for both OIDC and MFA.

@Huskydog9988
Copy link
Copy Markdown
Contributor Author

This is ready to be reviewed now

Copy link
Copy Markdown
Member

@DecDuck DecDuck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just some nitpick stuff, will have more of a look over when I have a wider screen (I'm on mobile).

Comment thread server/api/v1/auth/odic/logout.post.ts Outdated
@Huskydog9988
Copy link
Copy Markdown
Contributor Author

Fixed

@DecDuck
Copy link
Copy Markdown
Member

DecDuck commented Jan 14, 2026

Typecheck is very unhappy

@Huskydog9988
Copy link
Copy Markdown
Contributor Author

Fixed

Comment thread server/api/v1/auth/signin/simple.post.ts Outdated
Comment thread server/internal/auth/oidc/index.ts
Comment thread server/internal/auth/oidc/index.ts
Comment thread server/internal/auth/oidc/index.ts
Comment thread server/internal/session/cache.ts
Comment thread server/internal/session/index.ts Outdated
@DecDuck
Copy link
Copy Markdown
Member

DecDuck commented Jan 14, 2026

Just reviewed.

Also, does this need a test with the new MFA stuff?

@Huskydog9988
Copy link
Copy Markdown
Contributor Author

Yea, I don't have the setup to properly test the changes rn

@DecDuck DecDuck merged commit f04daf0 into Drop-OSS:develop Jan 19, 2026
2 checks passed
Huskydog9988 added a commit to Huskydog9988/drop that referenced this pull request Apr 16, 2026
* prevent returning expired sessions

* add issuer to ODIC creds

* get id token in ODIC

* make session signin return session

* working backchannel logout?

* require https for ODIC provider

* handle wellknown not being https

* find session api progress

* fix windows build

* return session token on session

* switch OIDC to #searchSessions

* update pnpm

* switch to using message on error obj

* move odic callback

* fix type errors

* redirect old oidc callback

* make redirect url a URL

* remove scheduled task downloadCleanup

* fix session search for oidc

* fix signin result

* cleanup code

* ignore data dir

* fix lint error
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.

2 participants