Is the login for experience cloud sites no more supported using frontdoor.jsp? As per this article, it should be.
For some quick testing, as given here, I'm using the form element sample inside a simple HTML page. I've extracted the session ID from SOAP login response made via SOAP UI tool and embedded the same in my html. And the URL used is in the format https://<my-domain-name>.my.salesforce.com/secur/frontdoor.jsp
. It works for standard salesforce site, but not for community sites anymore. I'm always get redirected to the community login page instead.
I came across an article that suggested that the URL to be used for community sites should be in the format: https://<my-domain-name>.my.site.com/<any-community-suffix-url>/secur/frontdoor.jsp
. I've tried this too but doesn't work.
UserInfo.getSessionId()
&$Api.SessionID
because I'm trying to load the experience site inside a 3rd party mobile app (which uses Salesforce Mobile SDK). However, while trying out this feature on the mobile app, I've used theaccess_token
obtained from OAuth authentication. But the same behavior was observed. Just to ensure that this works in a normal web page load firstly, I've tried this on a simple HTML page using the token from SOAP APIlogin
call. I believe the SOAP call gives the same session ID or equivalent as OAuth.Session contexts are based on the domain of the request. That is, the session context changes whenever you cross a hostname boundary, such as from .salesforce.com to .vf.force.com or .lightning.force.com.
. If I make a SOAP APIlogin
call, I believe the response should be giving me the session token from.salesforce.com
.my.site.com
is an Enhanced Domain site. What's the outcome of your test in an org without Enhanced Domain? How about the same test with and without Enhanced Domain in Winter '22 org