KEYCLOAK-1171 Missing parameters: response_type login to oauth-client and oauth-client-cdi

This commit is contained in:
Stian Thorgersen 2015-04-01 13:50:50 +02:00
parent 41828cd865
commit 48c7bd1b5e

View file

@ -77,6 +77,7 @@ public class ServletOAuthClient extends AbstractOAuthClient {
String state = getStateCode();
KeycloakUriBuilder uriBuilder = KeycloakUriBuilder.fromUri(getUrl(request, authUrl, true))
.queryParam(OAuth2Constants.RESPONSE_TYPE, OAuth2Constants.CODE)
.queryParam(OAuth2Constants.CLIENT_ID, clientId)
.queryParam(OAuth2Constants.REDIRECT_URI, redirectUri)
.queryParam(OAuth2Constants.STATE, state);