Hi all,
I am trying to create a custom connector for SFDC as I need to make some custom calls and am getting nowhere with this issue. I created a connected app that I can confirm is working when using Postman, but I just cannot get it to work in the Custom Connector. I get the following error:
Create and authorize OAuth connection failed. OAuth2 authorization flow failed for service 'Generic Oauth 2'. OAuth 2 sign in failed to exchange code for access token. Client ID and secret sent in form body.. Response status code=BadRequest. Response body: {"error":"invalid_grant","error_description":"authentication failure"} Client ID and secret sent in Basic authorization header.. Response status code=BadRequest. Response body: {"error":"invalid_grant","error_description":"authentication failure"}
My setup in PA looks like this:

My SFDC settings look like this:

I also tried this with Salesforce as the ID Provider, but get a "requested scope is not allowed" error instead. As you can see, the scopes in fact match. The only thing I can think of is that the OAuth 2.0 method in PA is actually using the flow: accessCode in the securityDefinitions and not implicit, but I actually cannot change that value. If I do and change it, it reverts straiht back.
Long story short, I'm getting nowhere here and would appreciate any suggestions 🙂
Cheers all,
Max