goauthentik / authentik

The authentication glue you need.
https://goauthentik.io
Other
12.56k stars 842 forks source link

Social login default #3638

Closed martijndierckx closed 1 year ago

martijndierckx commented 1 year ago

Describe your question/ I only support Microsoft social login on my Authentik, not a manual user-password flow nor other social logins. Is it possible to automatically redirect from the login page to the social login?

Version and Deployment (please complete the following information):

selmernoid commented 1 year ago

I'm facing a similar issue.

Your case might be solved in that way:

This should works

martijndierckx commented 1 year ago

Still shows the login form on my end.

image
martijndierckx commented 1 year ago

If I deselect the username/email user fields, I get this: but I want to skip the login screen entirely:

image
RobinBeismann commented 1 year ago

I'm interested in this also. @martijndierckx - did you find anything out?

martijndierckx commented 1 year ago

Nope :-(


Van: Robin Beismann @.> Verzonden: Thursday, February 2, 2023 9:08:32 PM Aan: goauthentik/authentik @.> CC: Martijn Dierckx @.>; Mention @.> Onderwerp: Re: [goauthentik/authentik] Social login default (Issue #3638)

I'm interested in this also. @martijndierckxhttps://github.com/martijndierckx - did you find anything out?

— Reply to this email directly, view it on GitHubhttps://github.com/goauthentik/authentik/issues/3638#issuecomment-1414309345, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AA6KD7RASOK7O5Y4OVKG4QDWVQH4BANCNFSM6AAAAAAQUJPNHI. You are receiving this because you were mentioned.Message ID: @.***>

RobinBeismann commented 1 year ago

I was thinking to bypass this by forwarding the default login page to the IdP login page via Traefik, but I'd prefer a built in solution..

RobinBeismann commented 1 year ago

There we go.

- "traefik.http.middlewares.forward-idp-replacepathregex.replacepathregex.regex=^/if/flow/default-authentication-flow/(.*)"
- "traefik.http.middlewares.forward-idp-replacepathregex.replacepathregex.replacement=/source/oauth/login/azuread/$$1"
BeryJu commented 1 year ago

I think it might be a reasonable assumption that when only a single source is selected in an identification stage to auto redirect to that source

brotherko commented 1 year ago

This issue seems to be fixed. I have the same single source setup and it gets redirected to Github directly. Pretty cool :)!

BeryJu commented 1 year ago

Oh yeah, I forgot to close this issue with the PR, added by #5583