FAQs
Installation & Setup
Setting Up Client Credentials Flow for CloudFiles
setting up client credentials flow for cloudfiles overview by default, cloudfiles uses oauth2 0 with user based authentication to connect with salesforce however, this approach has some limitations that can be resolved by switching to client credentials flow why use client credentials flow? client credentials flow offers several advantages over the default user based authentication more reliable connection the server to server connection doesn't require user reauthentication and won't be automatically disconnected by salesforce after a period of time (typically 365 days) cost effective licensing it allows you to use a salesforce integration license instead of a full salesforce license integration licenses are significantly cheaper and are often bundled with salesforce subscriptions no manual login required the integration user doesn't need to log into salesforce com directly, as their credentials are only used for api access note this setup must be completed in salesforce before changing the authentication settings in cloudfiles setup steps follow these steps to enable client credentials flow go to salesforce setup log into your salesforce org click on the gear icon and select "setup" navigate to external client apps in the quick find box, search for external client app click on "external client apps" from the results select cloudfiles find and click on "cloudfiles" in the list of external client apps edit oauth policies navigate to the "oauth policies" section click the "edit" button enable client credentials flow check the box for "enable client credentials flow" in the "run as" field, specify the username of a user with a salesforce integration license (or any appropriate license) click "save" next steps once you've completed these steps in salesforce, you can proceed to update your authentication settings in cloudfiles to use the client credentials flow this configuration is recommended for production environments as it provides a more stable and cost effective integration between cloudfiles and salesforce