Hi I was fighting with this issue few weeks later, and this setting works form me, maybe it will help you:
Use 2 credentials:
- Salesforce Authentication (for password and username)(GRANT):
![6370.png 6370.png](/t5/image/serverpage/image-id/6551iAB23530DD2191971/image-size/large?v=v2&px=999)
*Consumer Key and Consumer Secret you can find in SF under your API Account
- Salesforce Token (for secured tokens from SF) (TOKEN):
![6371.png 6371.png](/t5/image/serverpage/image-id/6553iAF4B02F979049ABC/image-size/large?v=v2&px=999)
*this works only as temp envelop for saving Expiry and Instance URL params, no credentials (username and password) set in this
In Web API - Salesforce authentication check this setting on "Common Authenticatiuon" - there must be set Credentilas where you have stored Expiry and Instance URL - In my case its named Salesforce Token UAT
![6372.png 6372.png](/t5/image/serverpage/image-id/6554iD353B79DC581122C/image-size/large?v=v2&px=999)
In process:
1. Authenticate
![6373.png 6373.png](/t5/image/serverpage/image-id/6555i286750E9D7118A11/image-size/large?v=v2&px=999)
![6374.png 6374.png](/t5/image/serverpage/image-id/6556i5EB50CCDBBF81FA7/image-size/large?v=v2&px=999)
2. Get Active Token
![6375.png 6375.png](/t5/image/serverpage/image-id/6557iD4FA0D43FAC2E274/image-size/large?v=v2&px=999)
![6376.png 6376.png](/t5/image/serverpage/image-id/6560i23FDA8A116D04551/image-size/large?v=v2&px=999)
Sorry for long post, but sometimes picture can say more then words.
Jan
------------------------------
Jan Čech
Senior RPA Specialist
VWFS
Europe/London
------------------------------