The frontdoor.jsp endpoint allows developers to authenticate Salesforce users from a custom web interface — such as a remote access Force.com site, third-party portal, or external API integration — using an existing session ID and server URL. This is useful for Single Sign-On (SSO) scenarios where users need to be redirected into Salesforce without re-entering credentials. Note: not all session types are supported. Visualforce sessions generated by {!GETSESSIONID()} cannot be used, and for Experience Cloud (Community) site API sessions, SAML SSO is the recommended alternative due to security constraints. A more secure version using a single-use access token is also available and is recommended for new implementations.
Use frontdoor.jsp to give users access to Salesforce from a custom web interface, such as a remote access Force.com site or other API integration, using their existing session ID and the server URL. For Experience Cloud sites, use a web-scoped access token. Here's an example of what the URL would look like:
https://instance.salesforce.com/secur/frontdoor.jsp?sid=session_ID&retURL=optional_relative_url_to_open
Replace session_ID with a valid Salesforce access token or session ID and instance with your Salesforce instance hostname. The retURL parameter is optional and specifies the Salesforce page to open after login.
000386254

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.