function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
sfdeveloper9sfdeveloper9 

Invoke Salesforce Rest API Using Okta Auth

We are using Okta as SSO solution in our organization and Salesforce is configured for SSO via Okta. There is another app (X App) that is integrated with okta as well for authentication. Assuming users are common between the salesforce and  X app, how can X app invoke salesforce rest apis in a user context?
 
VinayVinay (Salesforce Developers) 
You would need to establish integration between salesforce and  X app using rest api of connected app. X app cannot invoke any API if there is not integration logic in place.

Check below references for same.
https://www.forcetalks.com/blog/integration-with-okta-user-apis-in-salesforce/
https://help.okta.com/en-us/Content/Topics/Provisioning/Salesforce/sfdc-configure-provisioning-REST.htm
https://help.salesforce.com/s/articleView?id=sf.connected_app_create_api_integration.htm&type=5

Please mark as Best Answer if above information was helpful.

Thanks,