upped default client secret strength

pull/210/head
Justin Richer 12 years ago
parent e39dcb63dd
commit a45c8bf96d

@ -151,7 +151,7 @@ public class DefaultOAuth2ClientDetailsEntityService implements ClientDetailsEnt
*/
@Override
public ClientDetailsEntity generateClientSecret(ClientDetailsEntity client) {
client.setClientSecret(Base64.encodeBase64URLSafeString(new BigInteger(128, new SecureRandom()).toByteArray()).replace("=", ""));
client.setClientSecret(Base64.encodeBase64URLSafeString(new BigInteger(512, new SecureRandom()).toByteArray()).replace("=", ""));
return client;
}

Loading…
Cancel
Save