function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
BerginBergin 

passing client_id, client_secret as header for /oauth2/token call?

When getting the access token from /services/oauth2/token, we pass the client_id, secret, username, password as parameters. Is there a way to pass it via header?
Om PrakashOm Prakash
Hello Bergin,
Client_id , secret are request data so we can't pass it in header.
https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/quickstart_oauth.htm