DocsEdge Stack
1.13
Single Sign-On with Salesforce
Single Sign-On with Salesforce
Set up Salesforce
To use Salesforce as your IdP, you will first need to register an OAuth application with your Salesforce tenant. This guide will walk you through the most basic setup via the "Salesforce Classic Experience".
In the
Setuppage, underBuildclick the dropdown next toCreateand selectApps.Under
Connected Appsat the bottom of the page, click onNewat the top.Fill in the following fields with whichever values you want:
- Connected App Name
- API Name
- Contact Email
Under
API (Enable OAuth Settings)check the box next toEnable OAuth Settings.Fill in the
Callback URLsection withhttps://{{AMBASSADOR_HOST}}/.ambassador/oauth2/redirection-endpoint.Under
Selected OAuth Scopesyou must select theopenidscope value at the minimum. Select any other scope values you want to include in the response as well.Click
SaveandContinueto create the application.Record the
Consumer KeyandConsumer Secretvalues from theAPI (Enable OAuth Settings)section in the newly created application's description page.
After waiting for salesforce to register the application with their servers, you should be ready to configure Ambassador Edge Stack to Salesforce as an IdP.
Set up Ambassador Edge Stack
After configuring an OAuth application in Salesforce, configuring Ambassador Edge Stack to make use of it for authentication is simple.
Create an OAuth Filter with the credentials from above:
Create a FilterPolicy to use the
Filtercreated aboveApply both the
FilterandFilterPolicyabove withkubectl
Now any requests to https://{{AMBASSADOR_URL}}/backend/get-quote/ will require authentication from Salesforce.
ON THIS PAGE