-
Beta Was this translation helpful? Give feedback.
Answered by
tatliHU
Dec 27, 2024
Replies: 1 comment 1 reply
-
You could replace the login template with a version that automatically initiates a redirect to Keycloak (e.g. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I played with your idea a bit and while it is a good start, the solution will be much more complex. I can't just redirect to my Keycloak URL as Keycloak uses a state variable in its URL and it is unclear how it is calculated. I think that this state includes the CSRF token and the next attribute in some way as I need to pass this information.
Therefore, I think the best and most robust solution is by "pushing the buttons" from JS. I could eliminate the first click by overwriting the templates/allauth/account/login.html template: