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
          Embedded Login in Action

          Embedded Login in Action

          Let’s see what website visitors experience when you add login capabilities to a web page with Embedded Login.

          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.

          Imagine that you’re the owner of Fix Coffee and you design a website for your customers to buy your products.

          When visitors try to make a purchase on your Fix website, they see a Log In button at the top of the page.

          fixcoffee website index.html

          When visitors click the Log In button, Embedded Login displays a login form. Your visitors can log in using a username and password, or they can sign in with their social account credentials. You can even configure Embedded Login to use the discoverable login page type or any other custom login page type already configured for your site.

          discoverable login form

          username and password login form

          You can use a modal, popup, or inline login form. For a modal or popup, users click the Log In button to see the login form. If the form is inline, users see the form when they navigate to the page.

          Here’s what the web page looks like when the login form is in modal mode. The login form appears in the foreground at the center of the page.

          Embedded login form modal

          Here’s what the login form looks like in inline mode. The form appears when the user navigates to the web page. This form is just a sample—you can control how the login form looks.

          Embedded login inline mode

          After your users log in, you control what happens. In our example, we wrote an onLogin function to display the user’s avatar and email address after a successful login.

          Embedded login user logged in

          You can also control what your website users see when they log out. In our example, the onLogout function returns to the initial state, which displays the Log In button.

           
          Loading
          Salesforce Help | Article