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.
Best Answer
No, it is still supported. All I needed was to get the session token from the community domain/ login. As mentioned in my comment (ref: link),
Session contexts are based on the domain of the request
. So, the session or access token for the community site (my.site.com
domain - for orgs with enhanced domain) will be different than the ones fetched viaSOAP login
,UserInfo.getSessionId()
or$Api.SessionID
. In my case, I was able to get this via OAuth, since my actual requirement was to get this token in a mobile app.Access tokens received from a domain can be used to login to a page within or served from that particular domain only using frontdoor.jsp. The URL to be prefixed to
secur/frontdoor.jsp
can be actual instance URL and it need not be domain specific URL.Additional Info: On the
Setup
>Session Management
page, the details of community site specific token can be observed (of type ChatterNetwork).