Skip to main content
Version: ACE 5

Generate user token in keycloak

This guide assumes that development environment is setup Keycloak Setup

  1. Click on clients tab and select 'ace-client'.
  2. visit 'Credentials' tab and copy the 'secret' value.

Logical

  1. To generate token execute below command
curl http://localhost:8282/realms/ACE/protocol/openid-connect/token -d "client_id=ace-client" -d "client_secret=<secret value>" -d "username=user" -d "password=<password for user>" -d "grant_type=password"
note

For Keycloak under 17 auth url should have /auth suffix. https://<Your hostname>/auth