Skip to main content

All Questions

Filter by
Sorted by
Tagged with
1 vote
0 answers
815 views

Salesforce Named Credentials - oauth token refresh does not work

I am using Named Credentials to make callouts to a sharepoint system. Initially, callouts from apex code work fine, until the token expires after 12 hrs. Then I am consistently receiving below error: ...
sfchimp's user avatar
  • 11
0 votes
0 answers
109 views

OAuth Token Authentication Issue

Named Credentials is setup for "ABC" and same details we are storing in ABC_Metadata__mdt. Auth. Provider is setup for "ABC" and same details we are storing in ...
Nilesh's user avatar
  • 1
0 votes
0 answers
237 views

Get Refresh Token after callout failure

Named Credentials is setup for "ABC" and same details we are storing in ABC_Metadata__c. We are storing Refresh Token and Access Token in one record custom object Token__c. We have one ...
Nilesh's user avatar
  • 1
0 votes
0 answers
392 views

Storing tokens for custom token management

I'm working with an API that does not follow typical OAuth standards and requires custom headers for passing the token. Typically I would use Named Credentials, but due to the atypical pattern it is ...
S.B.'s user avatar
  • 2,141
1 vote
1 answer
2k views

Named Credential with OAuth Authentication Provider does not refresh access token

This is an extremely annoying unsolved issue that I see more people than I have been, and are(?), struggling with without a solution to date. Please help! Workaround or guidance. Auth Provider (AP): ...
Andreas's user avatar
  • 21
1 vote
1 answer
148 views

Users need to reauthenticate Per User Oauth2 Integration

I have an AppExchange App which uses OAuth2 Per User Authentication to access a 3rd Party REST API. To configure the app the Admin needs to create an AuthProvider, NamedCredential and a per User ...
Robert Sösemann's user avatar
14 votes
1 answer
1k views

Manually Invoke Refresh on Custom AuthProviderPluginClass

I have recently implemented a custom auth plugin provider in hopes of getting away from making a token call with every request OR having to manage the token myself. I am using the Oauth 2.0 client ...
S.B.'s user avatar
  • 2,141
8 votes
3 answers
11k views

Refresh Token using Salesforce Named Credentials and Auth Provider

I am performing a rest callout to a 3rd party service. Authentication is set up with a named credential (Named Principal, OAuth2) using an Open ID Connect-authentication provider which uses WSO2 ...
rahul gupta's user avatar
5 votes
2 answers
9k views

Named Credential: Authentication process and refresh token

I've begin working with Named Credential and Authentication Provider for the first time and I'm a bit lost on the authentication process and the refresh token functionalities. I'm going to add to my ...
Jose's user avatar
  • 2,162