I'm trying to achieve the same exact thing of this user but using a client with client_credentials
I've followed this post to create my client with client credentials grant and so I can get the access token like this
but when I try to call the execute-action-email api I only get an error 401
what am I missing?
Try to get the token from a user with the correct permissions for instance the master admin:
curl -k -sS -d "client_id=admin-cli"
-d "username=$ADMIN_NAME"
-d "password=$ADMIN_PASSWORD"
-d "grant_type=password"
http://$KEYCLOAK_IP/auth/realms/master/protocol/openid-connect/token)
Alternatively, what you can do is: