We created a Salesforce Connected App which should get its access token using SAML / OAuth2.
I’m trying to post to a Salesforce Rest Resource from a java console app. Currently I’m exposing it as a public resource via custom portals.
I’m looking for suggestions for a way to implement the authentication without passing username, password. I have checked OAuth flows but I believe all of them require a callback implementation to read the tokens. It will be helpful if you can suggest a way to authorize in an implicit manner.
I have been trying to implement Oauth 2.0 in my org and my requirement is to use Named credentials only when making a apex callout. I am using Named credentials, Oauth, Connected Apps and auth. provider to establish a connection with an external Salesforce org. The external org has exposed an apex class as REST service that I am trying to access using my org. I have followed the steps given in this link to setup everything :
I am trying to use PHP curl to authenticate my app’s user, but instead of authenticating with OAuth it returns the actual html login form as a response. Why? I don’t want to redirect the user over and over every time the need to re-authenticate.
I have registered connected application with partner’s SalesForce on Partner API level. Connected app have defined following scopes (id, web, api and refresh_token).
I’m using the
google-auth-library-nodejs library to integrate into a number of GMail accounts, to get lists of emails.