Skip to content
No results
Menu
No results
  • Home
  • All Blogs
    • Career
    • Admin
    • Developer
    • DevOps
    • CTA
  • Interview
  • Certifications
  • Free Training
  • About Us
Events
Apex Hours
  • Home
  • All Blogs
    • Career
    • Admin
    • Developer
    • DevOps
    • CTA
  • Interview
  • Certifications
  • Free Training
  • About Us
Courses
Events
Apex Hours
Courses
SAML Flow in Salesforce
SAML Flow in Salesforce

SAML Login Flows | Single Sign On in Salesforce

  • Apex HoursWritten ByApex Hours
  • Published OnFebruary 22, 2021
  • Updated OnApril 22, 2025
Home Identity and Access Management SAML Login Flows | Single Sign On in Salesforce
  • Identity and Access Management
  • 1
  • 3 mins

Single sign-on (SSO) is an authentication method that enables users to access multiple applications with one login and one set of credentials. For example, after users log in to your org, they can automatically access all apps from the App Launcher. When you set up single sign-on (SSO) with SAML, you can initiate login from the service provider or the identity provider.

Service provider-initiated login and identity provider-initiated login use different flows, but both result in the user being logged in to the service provider.

Table of contents
  1. What is SAML?
  2. Identity Provider and Service Provider
  3. Service Provider-Initiated SAML Flow
  4. Identity Provider-Initiated SAML Flow
  5. Recording
    1. Agenda
    2. Further Learning
  6. Please subscribe our YouTube channel to get notification for video upload.

What is SAML?

Security Assertion Markup Language(SAML) is the protocol that enables single sign on between applications.

Identity Provider and Service Provider

Identity Provider– This is the system or the applications that hold the identity information.

Service Provider– System or the application that provides the desired service.

Service Provider-Initiated SAML Flow

In a service-provider-initiated flow, the service provider begins the login process with a SAML request to the identity provider. Here’s how this flow works.

  1. The user requests a secure session to access a protected resource in the service provider.
  2. The service provider initiates login by sending a SAML request to the identity provider, asking it to authenticate the user.
  3. The identity provider sends the user to a login page.
  4. The user enters their identity provider login credentials and the identity provider authenticates the user.
  5. The identity provider now knows who the user is, so it sends a cryptographically signed SAML response to the service provider. The SAML response contains a SAML assertion that tells the service provider who the user is.
  6. The service provider validates the signature in the SAML response and identifies the user.
  7. The user is now logged in to the service provider and can access the protected resource.

Identity Provider-Initiated SAML Flow

In an identity provider-initiated login flow, a SAML request is unnecessary because the identity provider starts the flow with a SAML response. An identity provider-initiated flow is a shortened version of a service provider-initiated flow. Here’s how this flow works:

  1. The user logs in to the identity provider.
  2. The user clicks a button or link to access the service provider.
  3. The identity provider initiates login by sending a cryptographically signed SAML response to the service provider. The SAML response contains a SAML assertion that tells the service provider who the user is.
  4. The service provider validates the signature in the SAML response and identifies the user.
  5. The user is now logged in to the service provider.

Recording

Please check below session to see how to setup SSO between two Salesforce Org with IDP & SP flow. This session also contain how we can validate the SAML flow in Salesforce.

Agenda

  • What is SAML?
  • What is Identity Provider and Service Provider?
  • IDP Initiated Flow Explanation(Demo of SAML between 2 Salesforce Orgs)
  • SP Initiated Flow Explanation(Demo of SAML between 2 Salesforce Orgs)
SAML Flow in Salesforce | SSO Demo

Further Learning

  • Azure Active Directory Seamless Single Sign-On with Salesforce

Please subscribe our YouTube channel to get notification for video upload.

Tags
# SAML Login Flows# Single Sign-On
Share your love
Share on Facebook Share on X (Twitter) Share on Pinterest Share on LinkedIn
Apex Hours
Apex Hours

Salesforce Apex Hours is a program of the community, for the community, and led by the community. It is a space where Salesforce experts across the globe share their expertise in various arenas with an intent to help the Ohana thrive! Join us and learn about the apex hours team.

Articles: 298

Related Posts

Salesforce OAuth Flows Guidelines and Tips

Salesforce OAuth Flows Guidelines and Tips

Salesforce Identity and Access Management Designer exam

Salesforce Identity and Access Management Designer exam

Identity Flows OAuth 2.0

Identity Flows: OAuth 2.0

Okta Single Sign-On (SSO) with Salesforce

Setup Okta Single Sign-On (SSO) with Salesforce

Username and password flow

Username-Password Flow

JWT : SAML Assertion Bearer Flows

JWT / SAML Assertion Bearer Flows

One comment

  1. Vikas

    Vikas

    July 29, 2022 / 9:08 pm Reply

    Amit

    Can we initiate SAML request through apex code…and provide user / password through apex.

    Regards,
    Vikas Mishra

Leave a ReplyCancel Reply

Your email address will not be published. Required fields are marked *

Accelq

Important Links

Home
About us
Contact us
Privacy Policy

Recent Posts

  • Custom Theming Systems for LWC

  • Salesforce Data Breach Prevention: The Complete Security Hardening Guide for Admins and Developers

  • Nebula Logger Salesforce: The Complete Setup, Usage & Best Practices Guide

  • LWC Security in Salesforce

  • Salesforce Data Breaches- What Really Went Wrong (And How to Protect Your Org)

Subscribe to the blog via email

Enter your email address to subscribe to this blog and receive notifications of new post by email.

Join 4,518 other subscribers

Copyright 2018-2026. All Rights Reserved By Apex Hours.