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

Document the usage of (dynamic) auth_params such as kc_idp_hint within provider_login_url #3877

Open
skinkie opened this issue Jun 10, 2024 · 0 comments

Comments

@skinkie
Copy link

skinkie commented Jun 10, 2024

I would like to hint keycloak that a specific button should cause a direct authentication flow into a specific identity provider. With a bit of debugging I was able to come up with the following, which works. I would have hoped that kc_idp_hint='specific_idp' would have worked, I understand this would append all parameters, which may be undesired.

            <form action="{% provider_login_url 'keycloak' auth_params="kc_idp_hint=specific_idp" %}" method="post">
                  {% csrf_token %}
                  <button type="submit">My Specific IDP</button>
            </form>
@skinkie skinkie changed the title Document the usage of (dynamic) auth_param such as kc_idp_hint within provider_login_url Document the usage of (dynamic) auth_params such as kc_idp_hint within provider_login_url Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant