Loading
Salesforce now sends email only from verified domains. Read More
Identify Your Users and Manage Access
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Step 3: Enable Embedded Login on a Web Page

          Step 3: Enable Embedded Login on a Web Page

          On the web page where you want to add login capabilities, enter Embedded Login meta tags inside the <head> HTML element at the top of the page.

          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.

          Here’s what you see when you inspect the web page.

          Embedded login in browser inspector

          The top (1) contains a set of meta tags that specify how to display the login form. The bottom (2) contains a link to your CSS resources and a script to invoke Embedded Login on the server.

          Let’s take a closer look at the code.

          Close up of meta tags code

          The CSS and servlet URLs reside on static endpoints hosted by your site. You replace https://embeddedlogin-dev-ed.my.site.com/demo/ with the path to your site.

          <link href="https://embeddedlogin-dev-ed.my.site.com/demo/servlet/servlet.loginwidgetcontroller?type=css" rel="stylesheet" type="text/css" /> 
               <script src="https://embeddedlogin-dev-ed.my.site.com/demo/servlet/servlet.loginwidgetcontroller?type=javascript_widget" async defer></script> 

          Next, let’s see how to implement Embedded Login by populating the web page <head> element.

           
          Loading
          Salesforce Help | Article