8000 Enable use of kc_idp_hint in Pushed Authorization Requests. by laurids · Pull Request #47244 · keycloak/keycloak · GitHub
[go: up one dir, main page]

Skip to content

Enable use of kc_idp_hint in Pushed Authorization Requests. - #47244

Merged
mposolda merged 1 commit into
keycloak:mainfrom
laurids:issue-47229
Apr 1, 2026
Merged

mposolda merged 1 commit into
keycloak:mainfrom
laurids:issue-47229

Conversation

@laurids
@laurids laurids commented Mar 17, 2026
Copy link
Copy Markdown
Contributor

The client can select which Identity Provider to use for user authentication by including an Identity Provider alias in a "kc_idp_hint" parameter in a Pushed Authorization Request.

Closes #47229

The client can select which Identity Provider to use for user authentication by including an Identity Provider alias in a "kc_idp_hint" parameter in a Pushed Authorization Request.

Closes keycloak#47229

Signed-off-by: Laurids Møller Jepsen <laurids.jepsen@cryptomathic.com>
@ahus1
ahus1 commented Mar 17, 2026
Copy link
Copy Markdown
Member

Can the @keycloak/core-clients team please have a look?

@msdaly200 msdaly200 self-assigned this Mar 19, 2026
@msdaly200 msdaly200 left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested branch locally with google idp and worked as expected. More in comments on issue.

@msdaly200
Copy link
Copy Markdown
Contributor

Thanks for putting this together, @laurids! It worked well.

I pulled down this branch and ran a full end-to-end manual test locally, and it works exactly as described. The kc_idp_hint successfully bypasses the Keycloak login screen when passed through the PAR back-channel.

LGTM!

Testing Details

Setup: Local build of issue-47229, configured a test realm, a confidential client, and an external Google Identity Provider (IdP) with the alias google.

Action: Pushed an authorization request to the /ext/par/request endpoint containing kc_idp_hint=google, retrieved the request_uri, and navigated to the /auth endpoint in a clean browser session.

Result: Successfully bypassed the standard Keycloak authentication selection screen and was routed directly to the Google IdP login page. Following external authentication, successfully redirected back to the target application URI as an authenticated user.

@mposolda mposolda self-assigned this Mar 31, 2026
@mposolda mposolda left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@laurids @msdaly200 Thanks for the PR and additional review!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Identity Provider redirection via kc_idp_hint in Pushed Authorization Request

4 participants

0