Hello,
I'm trying to get access token using Password Grant Type:
curl --location --request POST 'http://<HOST>:<PORT>/oauth/token?username=<USERNAME>&password=<PASSWORD>&client_id=<CLIENT_ID>&client_secret=<CLIENT_SECRET>&grant_type=password&redirect_uri=<REDIRECT_URI>' --header 'Content-Type: application/x-www-form-urlencoded'
However, that results in the following error:
{"error_description":"Invalid grant_type parameter value","error":"invalid_request"}curl: (18) transfer closed with outstanding read data remaining
AEM ver is 6.5
Any help appreaciated.