dracoon / dracoon-java-sdk

Official DRACOON SDK for Java
Apache License 2.0
5 stars 1 forks source link

Copy/Paste mistake in OAuthHelper #1

Closed cheXat closed 6 years ago

cheXat commented 6 years ago

Hi,

in com.dracoon.sdk.OAuthHelper, Line 46

 public static String createAuthorizationUrl(URL serverUrl, String clientId, String state) {
   .....
   ValidatorUtils.validateString("Client ID", clientId, false);
   ValidatorUtils.validateString("State", clientId, false);

I guess, the 2nd check should be for parameter "state", not for clientId (again)

mkellnhofer commented 6 years ago

Thanks for reporting this bug. It will be fixed in the next release.