Allow support of Grant Type "Client Credentials"
Updated Jun 06, 2023
Version 2.0Was this article helpful?
I think there is a mistake with this part of the irule:
HTTP::payload replace 0 0 [string map {"grant_type=client_credentials" "grant_type=password&username=test&password=jhgkhlkjhkjhkj"} $payload]
It should actually be something like this:
HTTP::payload replace 0 [HTTP::payload length] [string map {"grant_type=client_credentials" "grant_type=password&username=test&password=jhgkhlkjhkjhkj"} $payload]
This is important because if grant_type isn't the first argument in the call, it simply won't work.