curl -X POST 'http://localhost:8080/auth/realms/master/protocol/openid-connect/token' \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "username=xxxxx" \
-d 'password=xxxxx' \
-d 'grant_type=password' \
-d 'client_id=admin-cli'
curl -X POST 'http://localhost:8080/auth/realms/svb/protocol/openid-connect/token' \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "username=xxxxxx" \
-d 'password=xxxxxx' \
-d 'grant_type=password' \
-d 'client_id=agent-desktop'
curl -X POST 'http://localhost:8080/auth/realms/svb/protocol/openid-connect/token' \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "client_id=xxxxxx" \
-d 'client_secret=xxxxxx-xxxxxx-xxxxxxxx' \
-d 'grant_type=client_credentials'
https://stackoverflow.com/questions/49572291/keycloak-user-validation-and-getting-token