Skip to content

Adding custom Query Paramater to the Authorization End Point - Keycloak Login Page URL #118

Answered by ch4mpy
saravanad asked this question in Q&A
Discussion options

You must be logged in to vote

@saravanad I don't know if you noticed that, but since 6.1.15, there is an application property which covers your use case (no need to define a custom OAuth2AuthorizationRequestResolver anymore, spring-addons default one is enough):

com:
  c4-soft:
    springaddons:
      oidc:
        client:
          authorization-request-params:
            keycloak:
            - name: kc_idp_hint
              value: google
            - name: ZZZZ
              value: temp

where keycloak is a registration ID in your boot conf:

spring:
  security:
    oauth2:
      client:
        provider:
          keycloak-provider:
            issuer-uri: ${keycloak-issuer}
        registration:
          keycloak

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@saravanad
Comment options

Comment options

You must be logged in to vote
3 replies
@saravanad
Comment options

@ch4mpy
Comment options

Answer selected by saravanad
@saravanad
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants