Please read the below :
I am building a client and need help getting the access token.
would like to know what needs to be passed in grant_type ? client_assertion ?
Where to get these values from ?
Request:
POST /token HTTP/1.1
Host: <org-hostname>:443
Timestamp: 1212669235
Date: Fri, 12 May 2016 17:21:16 GMT+0000
Content-type: application/x-www-form-urlencoded
grant_type=client_credentials&client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer&scope=profile-search&client_assertion=<JSON Web Signature (JWS)>
Response:
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 653
Date: Tue, 29 Oct 2019 14:13:29 GMT
{
"access_token" : "KjdsjEeRFwksjqefindikHAfDKV...",
"token_type" : "bearer"
"expires_in" : 3600
"scope":"profile-search"
}
In the above, the target system is expecting request parameters client_assertion which is(JWS). Also, target system mentioned they do not authenticate with Basic Auth...they do Bearer Authorization. as client_assertion is JWT token that will be signed with cert.....then my question is how do I get Header and Payload values from ? As these Header and Payload combo is JWT Token and needs to be passed as input parameters to get the Access Token in response. And these values change dynamically