New answers tagged

0

I had to create a Visualforce page to capture the query string params and redirect: <apex:page showHeader="false" standardStylesheets="false" applyBodyTag="false" applyHtmlTag="false"> <head> <title>OAuth 2.0 Redirect</title> </head> <script> window....


1

Neither Basic Auth nor client credentials grant type is supported by Salesforce for authorizing access to REST APIs (docs). In lieu of client credentials, Salesforce supports and recommends JWT Bearer flow. Both client credentials and JWT Bearer flows can be used to achieve the same goal of supporting no-user-present, machine-to-machine or application-to-...


1

Neither mode is supported. Basic Authentication is not supported at all, as it is essentially insecure, and while there are a number of OAuth modes supported, the only one that allows a password is the Password flow (grant_type=password), but this mode does not include Refresh Tokens, so your client will need to continually log in using the username and ...


2

Auth.AuthToken.getAccessToken(String authProviderId, String providerName) can get the access token from the auth provider. The call to getAccessToken is made within the currently established security context. That is, if ESB calls Salesforce via whatever API and authorizes this call as user Foo, the call to getAccessToken will retrieve the token for user Foo....


Top 50 recent answers are included