Hi,
I wnat to access the API gateway, but unfortunately when stepping though the example with my server url and the correct username and credential I always get an “invalid_request” as answer.
The request is (with modified password:
curl --insecure --request POST “http://localhost/api/idp/connect/token” --header “Content-Type: application/x-www-form-urlencoded” --data-urlencode “grant_type=password” --data-urlencode “username=srieder” --data-urlencode "password=“MyPasswordIsDifferent” --data-urlencode “client_id=GrantValidatorClient”
Usually I should ge a token isn’t it?
Yes, I get the following answer:
ProductVersion"24.1.11269.1"
UnsecureManagementServer"http://laptopsri/"
SecureManagementServer"https://laptopsri/"
IdentityProvider"http://laptopsri/IDP"
ApiGateways
0: “http://laptopsri/API/”
As I only have the Essential+ can this be the reason?
XProtect Essential+ should be OK.
I see it now..
curl --insecure --request POST “http://localhost/api/idp/connect/token” --header “Content-Type: application/x-www-form-urlencoded” --data-urlencode “grant_type=password” --data-urlencode “username=srieder” --data-urlencode "password=“MyPasswordIsDifferent” --data-urlencode “client_id=GrantValidatorClient”
NOT - "password=“MyPasswordIsDifferent”
Try instead “password=MyPasswordIsDifferent”
Thank You. That is the reason. Now I get a token and can move forward.