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

Endpoint to trigger automatic SSO login #4318

Open
PhilippMundhenk opened this issue Jan 26, 2025 · 1 comment
Open

Endpoint to trigger automatic SSO login #4318

PhilippMundhenk opened this issue Jan 26, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@PhilippMundhenk
Copy link
Contributor

Describe the solution you'd like

  1. Awesome solution! I love it! Thank you so much!
  2. It would be great to have an endpoint to redirect the user to that triggers SSO (basically the same as the SSO button on the sign-in page). If the user is already logged in, this would directly redirect the user to her homepage.

Type of feature

User Experience (UX)

Additional context

No response

@PhilippMundhenk PhilippMundhenk added the enhancement New feature or request label Jan 26, 2025
@PhilippMundhenk
Copy link
Contributor Author

I believe the link would need to be created based on the SSO settings (so might need to differ for each SSO, e.g., /login_<sso_name>) and look something like:

<settings.sso_name.authorization_endpoint>?client_id=<settings.sso_name.client_id>&redirect_uri=<redirect_url>&state=<??? auth.signin.Authelia-1>&response_type=code&scope=<settings.sso_name.scopes>

so, e.g., for Authelia:

https://authelia.example.com/api/oidc/authorization?client_id=memos&redirect_uri=https://memos.example.com/auth/callback&state=auth.signin.Authelia-1&response_type=code&scope=openid%20profile%20email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant