I'd like to use the native Salesforce
Auth. Provider and
Named Credential capabilities to allow a Salesforce user to follow the
OAuth flow to authenticate against a 3rd party service, and then later query the
Named Credential from an
ESB system, so that I can use the token stored in Salesforce from within the
ESB to access the data in the 3rd party service.
Somethings like this:
Looking at the documentation for NamedCredential, and other posts on SFSE, I get the impression I would not be able to access the token for use elsewhere.
Therefore, I believe (and would like confirmed), that I need to build a completely custom process for handling the
OAuth flow, storing the token, refresh token and expiry into