call encode() instead of new() on Base64URL utility

pull/516/head
Justin Richer 2013-09-12 15:19:14 -04:00
parent 35bd9c8eda
commit d09b3b50d6
1 changed files with 1 additions and 1 deletions

View File

@ -330,7 +330,7 @@ public class ConnectOAuth2RequestFactory extends DefaultOAuth2RequestFactory {
try {
JWK jwk = new OctetSequenceKey(new Base64URL(client.getClientSecret()), Use.SIGNATURE, null, client.getClientId(), null, null, null);
JWK jwk = new OctetSequenceKey(Base64URL.encode(client.getClientSecret()), Use.SIGNATURE, null, client.getClientId(), null, null, null);
Map<String, JWK> keys = ImmutableMap.of(client.getClientId(), jwk);
JwtSigningAndValidationService service = new DefaultJwtSigningAndValidationService(keys);