Invalid api key
Hi there,
I was testing out the request in the process of the OAuth authentication, however, I am stuck with the step 6 in the following guide: https://developer.adobe.com/developer-console/docs/guides/authentication/ServerToServerAuthentication/implementation/#rotating-client-secrets-programmatically
Upon making the request (while replacing the values as mentionned):
curl -X GET 'https://api.adobe.io/console/organizations/{orgId}/credentials/{credentialId}/secrets' \
-H 'Authorization: Bearer {ACCESS TOKEN GENERATED IN STEP 5}'
-H 'x-api-key: {CLIENT ID FROM STEP 6}'I systematically get an:
{
"error_code": "403003",
"message": "Api Key is invalid"
}Which is strange, since I use the same client_id I use for the access-key-generation-request:
curl -X POST 'https://ims-na1.adobelogin.com/ims/token/v3' \
-H 'Content-Type: application/x-www-form-urlencoded' \
-d 'client_id={CLIENT_ID}&client_secret={CLIENT_SECRET}&grant_type=client_credentials&scope={SCOPES}'And which generates the access_key correctly (the one I then use as the bearer in the request of step 6).
I am not sure why the error message is "Api Key is invalid", does anyone have a clue ?
Worth mentionning:
- We still have not deleted the JWT authentication;
- I played around with different version of the scopes to include in the access-key-generation-request, but I might be missing an important scope, could it be that I am missing an important scope (not sure then which one) ?
- Does the client need to have some previleges we'd need to activate on the developer console ?
Thanks