Token flow in Keycloak

First, get the token:

curl -d 'client_id=dmitri' \
-d 'client_secret=763f6e80-e7d8-4d4a-8cfb-f5edeb22dbf9' \
-d 'username=admin' \
-d 'password=password' \
-d 'grant_type=client_credentials' \
https://12.34.56.78/auth/realms/{{ realm }}/protocol/openid-connect/token
Next, test the token validity:
curl -X POST \
-H "Authorization: {{ token }}" \
"https://12.34.56.78/auth/realms/{{ realm }}/protocol/openid-connect/userinfo"