I am new to WSO2 API Manager
(APIM)
using version 1.9.1
. I am referring to link : https://docs.wso2.com/display/AM170/Token+API, in this link they've given curl command
curl -k -d "grant_type=password&username=<username>&password=
<password>&scope=<scope1> <scope2>" -H "Authorization: Basic
SVpzSWk2SERiQjVlOFZLZFpBblVpX2ZaM2Y4YTpHbTBiSjZvV1Y4ZkM1T1FMTGxDNmpzbEFDVzhh,
Content-Type: application/x-www-form-urlencoded" https://localhost:8243/token
Now I am trying to understand above curl
command in order to create Junit
to map all these headers
and body
values to my Spring RestTemplate
API's. I understand all parameters, but I don't understand below
Authorization: Basic
SVpzSWk2SERiQjVlOFZLZFpBblVpX2ZaM2Y4YTpHbTBiSjZvV1Y4ZkM1T1FMTGxDNmpzbEFDVzhh
Could you please explain what is the use of it? What we called long hex string by name?