Loading

Salesforce Files Connect External Data Source error for Files Connect with Sharepoint Online, Invalid client secret provided

Publiseringsdato: Mar 6, 2026
Beskrivelse
You may see this error when logging into an external data source for Files Connect with Sharepoint Online

Unable to Access Page
The value of the "ErrorDescription" parameter contains a character that is not allowed or the value exceeds the maximum allowed length.

And the URL of the error page contains the error message:
Invalid client secret provided. Ensure the secret being send in the request is the client secret value not the client secret ID for a secret added to app.

For example,
https://mydomain.my.salesforce.com/_nc_external/identity/sso/ui/AuthorizationError?ErrorCode=No_Oauth_Token&ErrorDescription=invalid_client+AADSTS7000215%3A+Invalid+client+secret+provided.+Ensure+the+secret+being+sent+in+the+request+is+the+client+secret+value%2C+not+the+client+secret+ID%2C+for+a+secret+added+to+app
Løsning
This error happens when the incorrect value is entered in the Consumer Secret field of the Authentication Provider created in Salesforce for the external data source.

A value and secret ID are created when a new client secret is saved in the Azure Management Console, the value needs to be saved in the Consumer Secret field. The value is only visible in the Azure Management Console immediately after the client secret is saved, create a new client secret if the value is not visible.

See Also
Create an Authentication Provider for SharePoint Online Using Azure (Preferred Method)
 
Knowledge-artikkelnummer

000394730

 
Laster
Salesforce Help | Article