Repository navigation
Option to disable automatic redirect to the IdP on OIDC-only instances #2925
Replies: 1 comment
|
Thanks @KindOfNerdy! TREK 5.2.0 adds an admin switch for OIDC-only instances to keep the login page with its SSO button instead of redirecting straight away. The redirect stays the default. Closing this as done. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Problem
When password login is disabled and OIDC is configured, TREK treats the instance as "OIDC-only" and redirects visitors straight to the identity provider on the first visit (
useLogin.ts,isOidcOnly()). There is no setting to turn this off. The login page with a manual SSO button is only shown after a logout.Why this matters
I would like visitors to see the TREK login page first, instead of being sent straight to the IdP. It makes the instance feel like a service rather than a bare redirect, and it leaves room for public-facing content on the login screen later (for example journeys shared with guests).
Keeping password login enabled just to get the SSO button on the login page weakens the setup, so there is currently no clean way to get this behaviour.
Proposal
Add an opt-out, e.g.:
OIDC_AUTO_REDIRECT=false, and/orDefault stays
true, so current behaviour does not change. Withfalse, the existing "logged out" login screen (manual SSO button) would be shown on the first visit as well. As far as I can tell this only needs an extra condition where the auto-redirect is triggered, plus the setting itself.Alternatives considered
Enabling password login to avoid the "OIDC-only" detection. That works, but it exposes a password form I don't want.
Possible follow-up (separate idea)
Allow guests to open a publicly shared journey by entering a share code on the login page, instead of needing the full link. Happy to open a separate request for that if it is of interest.
Setup
TREK v5.1.0, Docker Compose on Synology DSM, Pocket ID as OIDC provider (invite-only).
All reactions