Extend an Endpoint with the Experience ID

You can set the experience ID value by extending supported endpoints.

Warning
Warning In Summer ’24, Salesforce made Embedded Login disabled by default. We recommend that you use the web server flow, the user-agent flow, or another redirect-based OAuth 2.0 flow instead of Embedded Login.

Embedded Login relies on third-party cookies, which are blocked or restricted in most browsers. And Embedded Login works only on Google Chrome and only as long as third-party cookies are allowed there by default.

Extend the following endpoints with expid_value.

  • site-url/services/oauth2/authorize/expid_value
  • site-url/idp/endpoint/HttpPost/expid_value
  • site-url/idp/endpoint/HttpRedirect/expid_value

Extend the following endpoints with expid={value}.

  • site-url_login_page?expid={value}
  • site-url/CommunitiesSelfReg?expid={value}
  • site-url/.well-known/auth-configuration?expid={value}
  • secur/forgotpassword.jsp?expid={value}
  • site-url/services/auth/test/authentication_provider/?expid={value}
  • site-url/services/auth/sso/authentication_provider/?expid={value}
  • site-url/services/auth/link/authentication_provider/?expid={value}
  • site-url/services/auth/oauth/authentication_provider/?expid={value}
  • site-url/services/auth/authcallback/authentication_provider/?expid={value}

For example, pass in a different expid value to the self-registration page to deliver a different registration flow for each brand.

Note
Note The experience ID value is captured in a cookie rather than in the URL. For example, if the expid_value is set to Customers, an associated cookie has the expid_Customers value.