diff --git a/src/main/java/de/interaapps/accounts/apiclient/oauth2/OAuth2Client.java b/src/main/java/de/interaapps/accounts/apiclient/oauth2/OAuth2Client.java index 5622f64..8482b2e 100644 --- a/src/main/java/de/interaapps/accounts/apiclient/oauth2/OAuth2Client.java +++ b/src/main/java/de/interaapps/accounts/apiclient/oauth2/OAuth2Client.java @@ -110,7 +110,7 @@ public String build(){ +"/auth/oauth2" +"?client_id="+encodeUrl(clientId) +"&scope="+encodeUrl(String.join(" ", scopes)) - +(redirectUri == null ? "" : "&redirect_url="+encodeUrl(redirectUri)) + +(redirectUri == null ? "" : "&redirect_uri="+encodeUrl(redirectUri)) +(state == null ? "" : "&state="+encodeUrl(state)); } }