Embed SSO Buttons with Shortcode or Widget


This feature allows admins to add a SAML login button or link to any WordPress page, post, or widget area using a shortcode or widget. It enables SP-initiated SSO from custom login pages, portals, dashboards, and other site locations.

How It Works


When the widget or shortcode is used:

  • A SAML AuthnRequest is initiated.
  • The request is sent to the configured Service Provider (SP).
  • Authentication proceeds via the SAML flow.

Quick Steps


  1. Navigate to SSO Options → Sign-in Options in the WordPress admin dashboard.
  2. Copy the generated shortcode or SSO link for the required Service Provider (SP).
  3. Paste it into the desired page, post, widget, or button where you want users to sign in.
Shortcode Example

[mo_sp_link sp="sp_name" relayState=""]

Parameters
  • sp – Name of the configured Service Provider

  • relayState (optional) – Destination URL or state after authentication

The shortcode can be used directly or embedded within a custom button or block.

Embed SSO Buttons

Common Use Cases


  • Custom Login Portals

  • Membership Pages

  • Partner Dashboards

  • Intranet Applications

Benefits


  • No code required

  • Seamless user experience

  • Flexible placement across the site


For more information, visit the SAML IDP for WordPress page.