Commit 7f4178ee authored by Maxym Borodenko's avatar Maxym Borodenko
Browse files

Merge branch 'client-id-lowercase' into 'main'

OAuth: Generate client_id in lowercase

See merge request genesys-pgr/application-blocks!100
parents 12bf71a3 e7d327a8
......@@ -146,7 +146,7 @@ public class OAuthServiceImpl implements OAuthClientDetailsService {
@Override
@Transactional
public OAuthClient addClient(OAuthClient client) {
final String clientId = RandomStringUtils.randomAlphanumeric(5) + "." + RandomStringUtils.randomAlphanumeric(20) + "@" + hostname;
final String clientId = RandomStringUtils.randomAlphanumeric(5).toLowerCase() + "." + RandomStringUtils.randomAlphanumeric(20).toLowerCase() + "@" + hostname;
final String clientSecret = RandomStringUtils.randomAlphanumeric(32);
final OAuthClient newClient = new OAuthClient();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment