Skip to content

Commit

Permalink
Merge pull request #367 from drxeno02/leonard-resolved-issue-315
Browse files Browse the repository at this point in the history
Resolved issue #315
  • Loading branch information
Karthikeyan committed Jan 6, 2018
2 parents e5f0751 + b19fdcd commit 46f9faf
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -25,8 +25,8 @@

/**
* Utility class to generate random string, hash, and encoding.
*
*/

public final class Pkce {

/**
Expand Down Expand Up @@ -69,6 +69,6 @@ public final static String encodeBase64(String str) {
return null;
}
byte[] data = str.getBytes(Charset.forName("ISO-8859-1"));
return Base64.encodeToString(data, Base64.NO_PADDING);
return Base64.encodeToString(data, Base64.URL_SAFE | Base64.NO_WRAP | Base64.NO_PADDING);
}
}

0 comments on commit 46f9faf

Please sign in to comment.