Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEAT]: Simple SSO implementation flag via query flag #2552

Closed
timothycarambat opened this issue Oct 29, 2024 · 1 comment · Fixed by #2553
Closed

[FEAT]: Simple SSO implementation flag via query flag #2552

timothycarambat opened this issue Oct 29, 2024 · 1 comment · Fixed by #2553
Assignees
Labels
enhancement New feature or request feature request

Comments

@timothycarambat
Copy link
Member

What would you like to see?

There are many situations where SSO is managed by some external service of platform that AnythingLLM is simply a sub-offering of. The issue becomes the following:

  1. User exists or logs into some external service or platform via SSO
  2. The user wants to access AnythingLLM, but requires a totally different login to leverage.
  3. This adds administrative overhead and makes AnythingLLM an external service that is harder to maintain userspace within that matches the external service.
  4. Since often the external platform and AnythingLLM are cross-domain or not on the same origin you cannot set a session token for AnythingLLM via the original domain.

Solution:
There should be an optional ENV flag that enables an endpoint to exist that permits a token to be embedded that is fetchable from a query param that "auto login" a user when present in the URL.

This token to be embedded in the URL should be a lookup token that is only valid once and is able to set the user session on login. Issuance/creation of this token for a user can be done via the developer API.

This feature and its associated features are all disabled unless the simple sso feature ENV flag is enabled.

@timothycarambat timothycarambat self-assigned this Oct 29, 2024
@timothycarambat
Copy link
Member Author

connects #1193

@timothycarambat timothycarambat changed the title [FEAT]: Simple SSO implementation flag [FEAT]: Simple SSO implementation flag via query flag Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feature request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant