When a Files Connect OAuth token expires, Salesforce uses the refresh token to obtain a new access token automatically. If the refresh token has also expired, users receive the error: "Your authentication token to this content source has expired" when attempting to browse an External Data Source connected via Files Connect.
This behavior follows the standard OAuth 2.0 authentication flow and is not specific to Salesforce. Token expiration, validation, and duration are governed by the external system (such as SharePoint or Office 365), not by Salesforce.
Follow the steps below to re-authenticate and restore access to the Files Connect External Data Source.
Confirm that the App domain of the Office 365 application in Salesforce Setup exactly matches the value specified in the documentation. A mismatch here will cause authentication failures even after re-authentication.
Delete the expired authentication credentials and re-initiate the OAuth flow.
For reference, see: Manage Your Files Connect External Data Source Authentication Credentials
If re-authentication does not resolve the error:
Important: Do not delete any existing External Data Sources in Salesforce. These may be customized for specific SharePoint integration points and may be referenced in other Salesforce objects.
When using the Azure method and additional authentication errors occur, try the alternate method of authentication. SharePoint Online has throttling limitations that can activate when users authenticate against a large site collection. The alternate method can bypass this limitation.
Note: Similar steps apply when Named Principal authentication is used, where the SharePoint admin authenticates on behalf of all users.
000388005

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.