[GH-ISSUE #4277] [FEAT]: Ability to set a redirect URL when SIMPLE_SSO_NO_LOGIN is enabled #2724

Closed
opened 2026-02-22 18:30:57 -05:00 by yindo · 4 comments
Owner

Originally created by @jstawski on GitHub (Aug 12, 2025).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/4277

What would you like to see?

I would like to create a middleware website that will integrate with my SSO provider (Auth0) and AnythingLLM. I have enabled SIMPLE_SSO_NO_LOGIN and SIMPLE_SSO_ENABLED, but the problem is that when the user browses to website they get redirected to /sso/simple with a message No token provided. A new environment variable that allows the admin to configure where to redirect the user after they browse to the homepage (unauthenticated) will allow for this setup to work:

  1. User browses to AnythingLLM instance
  2. AnythingLLM redirects to configure URL (middleware)
  3. Middleware interacts with SSO provider and AnythingLLM: create user if it doesn't exist and redirect to /sso/simple
  4. User is logged in

This simple environment variable would allow people to integrate with any SSO solution, even custom ones.

Originally created by @jstawski on GitHub (Aug 12, 2025). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/4277 ### What would you like to see? I would like to create a middleware website that will integrate with my SSO provider (Auth0) and AnythingLLM. I have enabled `SIMPLE_SSO_NO_LOGIN` and `SIMPLE_SSO_ENABLED`, but the problem is that when the user browses to website they get redirected to `/sso/simple` with a message `No token provided`. A new environment variable that allows the admin to configure where to redirect the user after they browse to the homepage (unauthenticated) will allow for this setup to work: 1. User browses to AnythingLLM instance 2. AnythingLLM redirects to configure URL (middleware) 3. Middleware interacts with SSO provider and AnythingLLM: create user if it doesn't exist and redirect to `/sso/simple` 4. User is logged in This simple environment variable would allow people to integrate with any SSO solution, even custom ones.
yindo added the enhancementUI/UXfeature request labels 2026-02-22 18:30:57 -05:00
yindo closed this issue 2026-02-22 18:30:57 -05:00
Author
Owner

@timothycarambat commented on GitHub (Aug 12, 2025):

I like this idea!

@timothycarambat commented on GitHub (Aug 12, 2025): I like this idea!
Author
Owner

@naaa760 commented on GitHub (Aug 13, 2025):

@jstawski
this adds SIMPLE_SSO_NO_LOGIN_REDIRECT_URL so when SIMPLE_SSO_NO_LOGIN is enabled, unauthenticated users are redirected to your middleware URL instead of /sso/simple.

@naaa760 commented on GitHub (Aug 13, 2025): @jstawski this adds SIMPLE_SSO_NO_LOGIN_REDIRECT_URL so when SIMPLE_SSO_NO_LOGIN is enabled, unauthenticated users are redirected to your middleware URL instead of /sso/simple.
Author
Owner

@jstawski commented on GitHub (Aug 30, 2025):

Hello, what is the status of this feature request? I saw there is an opened PR about it. How can I help?

@jstawski commented on GitHub (Aug 30, 2025): Hello, what is the status of this feature request? I saw there is an opened PR about it. How can I help?
yindo changed title from [FEAT]: Ability to set a redirect URL when SIMPLE_SSO_NO_LOGIN is enabled to [GH-ISSUE #4277] [FEAT]: Ability to set a redirect URL when SIMPLE_SSO_NO_LOGIN is enabled 2026-06-05 14:48:11 -04:00
Author
Owner

@nehaaprasad commented on GitHub (Aug 13, 2025):

@jstawski
this adds SIMPLE_SSO_NO_LOGIN_REDIRECT_URL so when SIMPLE_SSO_NO_LOGIN is enabled, unauthenticated users are redirected to your middleware URL instead of /sso/simple.

<!-- gh-comment-id:3183595984 --> @nehaaprasad commented on GitHub (Aug 13, 2025): @jstawski this adds SIMPLE_SSO_NO_LOGIN_REDIRECT_URL so when SIMPLE_SSO_NO_LOGIN is enabled, unauthenticated users are redirected to your middleware URL instead of /sso/simple.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#2724