You need to sign in to do that
Don't have an account?
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?
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