PageForge 1.3: Überprüfen Sie jeden Durchlauf, bevor er schreibt, aktualisierte Seiten, SpinTax und wiederaufnehmende Batches. Sehen Sie, was sich geändert hat
WP SAML Auth icon
gepflegt Getestet bis 7.0.9 #11 in authentication

WP SAML Auth

SAML authentication for WordPress.

Aktive Installationen7K+5K + Stufe
Downloads · 30d7.2K▲ +6.2% vs prev. 30d
Wertung4.5/58 Bewertungen
Gesundheits-Score71/100Gut
Downloads aller Zeiten245.8KSeit April 2016
Unterstützung gelöst2 / 2100% in den letzten 2 Monaten
erfordertWP 6.4PHP 7.4+
Downloads · 7d1.8K▲ +0.8% week over week
Unser Urteil

Solide Wahl

WP SAML Auth is a solid plugin choice in 2026, with a few things worth checking first. It runs on 7K+ sites, is rated 4.5/5 and was last updated 3 months ago, and scores 71/100 on our health check.

Wie stapelt es sich?

Side-by-side bei Installationen, Updates, Bewertungen und Support

Tägliche Downloads

129259389Aug 22Oct 5Nov 19
Gestern476
Täglicher Durchschnitt (1 Jahr)169
Spitzentag1,30412. August 2026
Letzte 12 Monate61.5K

Download-Spitzen folgen normalerweise einer neuen Version - jede Website, die automatisch aktualisiert wird, gilt als Download.

Ranglisten

Where WP SAML Auth stands today

WordPress.org Ranglisten suchen

Live-Position in der Plugin-Suche, Top 100
StichwortPositionKonkurrierende PluginsKategorie
authentication #32 4,972 Best authentication plugins →
SAML #1 41 Best SAML plugins →

Versionsübernahme

Anteil aktiver Sites pro Release.

  • 2.364.2%
  • 2.127.9%
  • Andere7.9%

Bewertungsaufschlüsselung

★★★★★★★★★★ 4.5 from 8 reviews

  • 5★87.5%
  • 4★0.00%
  • 3★0.00%
  • 2★0.00%
  • 1★12.5%

About WP SAML Auth

Aus der offiziellen Readme · V2.3.4

Beschreibung

SAML authentication for WordPress, using the bundled OneLogin SAML library or optionally installed SimpleSAMLphp. OneLogin provides a SAML authentication bridge; SimpleSAMLphp provides SAML plus a variety of other authentication mechanisms. This plugin acts as a bridge between WordPress and the authentication library.

If your organization uses Google Apps, integrating Google Apps with WP SAML Auth takes just a few steps.

The standard user flow looks like this:

  • User can log in via SAML using a button added to the standard WordPress login view.
  • When the button is clicked, the user is handed off to the authentication library. With OneLogin, the user is redirected to the SAML identity provider. With SimpleSAMLphp, the user is redirected to the SimpleSAMLphp install.
  • Once the user is authenticated with the identity provider, they’re redirected back to WordPress and signed in to their account. A new WordPress user will be created if none exists (although this behavior can be disabled).
  • When the user logs out of WordPress, they are also logged out of the identity provider.

A set of configuration options allow you to change the plugin’s default behavior. For instance, permit_wp_login=>false will force all authentication to go through the SAML identity provider, bypassing wp-login.php. Similiarly, auto_provision=>false will disable automatic creation of new WordPress users.

See installation instructions for full configuration details.

Installing SimpleSAMLphp

The plugin supports both SimpleSAMLphp v1.x and v2.x. The autoloader is automatically detected:

SimpleSAMLphp v2.x uses vendor/autoload.php
SimpleSAMLphp v1.x uses lib/_autoload.php

Default Search Paths

The plugin automatically searches for SimpleSAMLphp in these locations:
* ABSPATH . 'simplesaml'
* ABSPATH . 'private/simplesamlphp'
* ABSPATH . 'simplesamlphp'
* ABSPATH . 'vendor/simplesamlphp/simplesamlphp' (Composer installation)
* plugin_dir_path . 'simplesamlphp'

For each path, the plugin checks for both vendor/autoload.php (v2.x) and lib/_autoload.php (v1.x).

This means Composer installations work automatically! If you run composer require simplesamlphp/simplesamlphp in your site root, the plugin will find it without any additional configuration.

Composer Installation (Advanced)

If you install SimpleSAMLphp via Composer to a custom location (not the standard vendor/simplesamlphp/simplesamlphp), you can specify the autoloader path:

add_filter( 'wp_saml_auth_option', function( $value, $option_name ) {
    if ( 'simplesamlphp_autoload' === $option_name ) {
        // Point to your custom Composer vendor autoloader
        return '/custom/path/vendor/autoload.php';
    }
    return $value;
}, 10, 2 );

Custom Installation Paths

If SimpleSAMLphp is installed in a non-default location, you can set custom search paths with the wp_saml_auth_simplesamlphp_path_array filter:

add_filter( 'wp_saml_auth_simplesamlphp_path_array', function( $simplesamlphp_path_array ) {
    // Override default paths with custom paths
    return [ '/custom/path/to/simplesamlphp' ];
} );

Or define an explicit autoloader path with the wp_saml_auth_ssp_autoloader filter:

add_filter( 'wp_saml_auth_ssp_autoloader', function( $ssp_autoloader ) {
    return ABSPATH . 'path/to/simplesamlphp/vendor/autoload.php';
} );<h3>WP-CLI Commands</h3>

This plugin implements a variety of WP-CLI commands. All commands are grouped into the wp saml-auth namespace.

$ wp help saml-auth

NAME

  wp saml-auth

DESCRIPTION

  Configure and manage the WP SAML Auth plugin.

SYNOPSIS

  wp saml-auth <command>

SUBCOMMANDS

  scaffold-config      Scaffold a configuration filter to customize WP SAML Auth usage.

Use wp help saml-auth <command> to learn more about each command.

Note: The scaffold-config command generates a configuration function with default values. The simplesamlphp_autoload option is not included in the scaffolded output because the plugin auto-detects SimpleSAMLphp installations. Only add this option manually if SimpleSAMLphp is in a non-standard location.

Mitwirken

See CONTRIBUTING.md for information on contributing.

Installation

Once you’ve activated the plugin, and have access to a functioning SAML Identity Provider (IdP), there are a couple of ways WP SAML Auth can be configured:

  1. Settings page in the WordPress backend. The settings page offers the most common configuration options, but not all. It’s located at “Settings” -> “WP SAML Auth”.
  2. Code snippet applied with a filter. The code snippet approach, documented below, allows access to all configuration settings. The settings page is disabled entirely when a code snippet is present.

If you’re connecting directly to an existing IdP, you should use the bundled OneLogin SAML library. The necessary and most common settings are available in the WordPress backend.

If you have more complex authentication needs, then you can also use a SimpleSAMLphp installation running in the same environment. These settings are not configurable through the WordPress backend; they’ll need to be defined with a filter. And, if you have a filter in place, the WordPress backend settings will be removed.

Note: A security vulnerability was found in SimpleSAMLphp versions 2.0.0 and below. It is highly recommended if you are using SimpleSAMLphp with WP SAML Auth that you update your SimpleSAMLphp library to 2.4.0 or above. (See CVE-2025-27773 and The SimpleSAMLphp SAML2 library incorrectly verifies signatures for HTTP-Redirect bindings for more information.)

Additional explanation of each setting can be found in the code snippet below.

To install SimpleSAMLphp locally for testing purposes, the Identity Provider QuickStart is a good place to start. On Pantheon, the SimpleSAMLphp web directory needs to be symlinked to ~/code/simplesaml to be properly handled by Nginx. Read the docs for more details about configuring SimpleSAMLphp on Pantheon.

Because SAML authentication is handled as a part of the login flow, your SAML identity provider will need to send responses back to wp-login.php. For instance, if your domain is pantheon.io, then you’d use http://pantheon.io/wp-login.php as your AssertionConsumerService configuration value.

Where to add configuration code: When using the filter-based configuration approach, add your code to a location that loads before the plugin initializes. You can create a custom must-use plugin or add the code to your theme’s functions.php file (note: theme-based configuration will need to be migrated if you switch themes).

To configure the plugin with a filter, or for additional detail on each setting, use this code snippet:

function wpsax_filter_option( $value, $option_name ) {
    $defaults = array(
        /**
         * Type of SAML connection bridge to use.
         *
         * 'internal' uses OneLogin bundled library; 'simplesamlphp' uses SimpleSAMLphp.
         *
         * Defaults to SimpleSAMLphp for backwards compatibility.
         *
         * @param string
         */
        'connection_type' => 'internal',
        /**
         * Configuration options for OneLogin library use.
         *
         * See comments with "Required:" for values you absolutely need to configure.
         *
         * @param array
         */
        'internal_config'        => array(
            // Validation of SAML responses is required.
            'strict'       => true,
            'debug'        => defined( 'WP_DEBUG' ) && WP_DEBUG ? true : false,
            'baseurl'      => home_url(),
            'sp'           => array(
                'entityId' => 'urn:' . parse_url( home_url(), PHP_URL_HOST ),
                'assertionConsumerService' => array(
                    'url'  => wp_login_url(),
                    'binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST',
                ),
            ),
            'idp'          => array(
                // Required: Set based on provider's supplied value.
                'entityId' => '',
                'singleSignOnService' => array(
                    // Required: Set based on provider's supplied value.
                    'url'  => '',
                    'binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect',
                ),
                'singleLogoutService' => array(
                    // Required: Set based on provider's supplied value.
                    'url'  => '',
                    'binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect',
                ),
                // Required: Contents of the IDP's public x509 certificate.
                // Use file_get_contents() to load certificate contents into scope.
                'x509cert' => '',
                // Optional: Instead of using the x509 cert, you can specify the fingerprint and algorithm.
                'certFingerprint' => '',
                'certFingerprintAlgorithm' => '',
            ),
        ),
        /**
         * Path to SimpleSAMLphp autoloader.
         *
         * SimpleSAMLphp v2.x uses 'vendor/autoload.php'
         * SimpleSAMLphp v1.x uses 'lib/_autoload.php'
         *
         * The plugin will automatically search for SimpleSAMLphp in common
         * installation paths and detect the correct autoloader for both versions.
         *
         * You typically don't need to set this - leave it commented out to use auto-detection.
         * Only set this value if SimpleSAMLphp is in a non-standard location.
         *
         * Examples:
         * - SimpleSAMLphp v2.x: dirname( __FILE__ ) . '/simplesamlphp/vendor/autoload.php'
         * - SimpleSAMLphp v1.x: dirname( __FILE__ ) . '/simplesamlphp/lib/_autoload.php'
         * - Composer (site root): ABSPATH . 'vendor/autoload.php'
         *
         * @param string
         */
        // 'simplesamlphp_autoload' => dirname( __FILE__ ) . '/simplesamlphp/vendor/autoload.php',
        /**
         * Authentication source to pass to SimpleSAMLphp
         *
         * This must be one of your configured identity providers in
         * SimpleSAMLphp. If the identity provider isn't configured
         * properly, the plugin will not work properly.
         *
         * @param string
         */
        'auth_source'            => 'default-sp',
        /**
         * Whether or not to automatically provision new WordPress users.
         *
         * When WordPress is presented with a SAML user without a
         * corresponding WordPress account, it can either create a new user
         * or display an error that the user needs to contact the site
         * administrator.
         *
         * @param bool
         */
        'auto_provision'         => true,
        /**
         * Whether or not to permit logging in with username and password.
         *
         * If this feature is disabled, all authentication requests will be
         * channeled through SimpleSAMLphp.
         *
         * @param bool
         */
        'permit_wp_login'        => true,
        /**
         * Attribute by which to get a WordPress user for a SAML user.
         *
         * @param string Supported options are 'email' and 'login'.
         */
        'get_user_by'            => 'email',
        /**
         * SAML attribute which includes the user_login value for a user.
         *
         * @param string
         */
        'user_login_attribute'   => 'uid',
        /**
         * SAML attribute which includes the user_email value for a user.
         *
         * @param string
         */
        'user_email_attribute'   => 'mail',
        /**
         * SAML attribute which includes the display_name value for a user.
         *
         * @param string
         */
        'display_name_attribute' => 'display_name',
        /**
         * SAML attribute which includes the first_name value for a user.
         *
         * @param string
         */
        'first_name_attribute' => 'first_name',
        /**
         * SAML attribute which includes the last_name value for a user.
         *
         * @param string
         */
        'last_name_attribute' => 'last_name',
        /**
         * Default WordPress role to grant when provisioning new users.
         *
         * @param string
         */
        'default_role'           => get_option( 'default_role' ),
    );
    $value = isset( $defaults[ $option_name ] ) ? $defaults[ $option_name ] : $value;
    return $value;
}
add_filter( 'wp_saml_auth_option', 'wpsax_filter_option', 10, 2 );

If you need to adapt authentication behavior based on the SAML response, you can do so with the wp_saml_auth_pre_authentication filter:

/**
 * Reject authentication if $attributes doesn't include the authorized group.
 */
add_filter( 'wp_saml_auth_pre_authentication', function( $ret, $attributes ) {
    if ( empty( $attributes['group'] ) || ! in_array( 'administrators', $attributes['group'] ) ) {
        return new WP_Error( 'unauthorized-group', "Sorry, you're not a member of an authorized group." );
    }
    return $ret;
}, 10, 2 );

If you’re using the OneLogin connection type and need to modify the internal_config (e.g. to set requestedAuthnContext to false), you can use the wp_saml_auth_internal_config filter:

/**
 * Modify the OneLogin SAML configuration.
 */
add_filter( 'wp_saml_auth_internal_config', function( $config ) {
    $config['security'] = array(
        'requestedAuthnContext' => false,
    );
    return $config;
} );

In multisite environments, you can prevent auto-provisioned users from being automatically added to sites using the wp_saml_auth_auto_add_to_blog filter. By default, WordPress multisite adds new users to the site where they log in (typically site ID 1) with the default_role.

/**
 * Prevent auto-provisioned users from being added to any site.
 * Users will be created as network users only.
 */
add_filter( 'wp_saml_auth_auto_add_to_blog', '__return_false' );

You can also prevent users from being added only to specific sites:

/**
 * Prevent auto-provisioned users from being added to site ID 1,
 * but allow them to be added to other sites.
 */
add_filter( 'wp_saml_auth_auto_add_to_blog', function( $add_user, $blog_id ) {
    // Don't add users to site ID 1
    if ( 1 === $blog_id ) {
        return false;
    }
    return $add_user;
}, 10, 2 );

When this filter returns false, users are created as network users without being added to the site. This is useful for large multisite installations where you want to manage site membership separately from authentication.

Note for developers using the wp_saml_auth_new_user_authenticated action: When this filter returns false, the user passed to wp_saml_auth_new_user_authenticated will have no role on the current site. If your hook relies on $user->roles, check for an empty array:

add_action( 'wp_saml_auth_new_user_authenticated', function( $user, $attributes ) {
    if ( empty( $user->roles ) ) {
        // Network-only user, no role on this site.
        return;
    }
    // Your existing logic.
}, 10, 2 );

Änderungsprotokoll

Security Notice: The recommended version of SimpleSAMLphp library is 2.3.7 or later when using the simplesamlphp SAML authentication type. SimpleSAMLphp 2.0.0 or later is required to fix CVE-2023-26881 (XML signature validation bypass vulnerability). New: With "Enforce Security Requirements" enabled, SimpleSAMLphp versions below 2.0.0 will be blocked. WP SAML Auth 2.2.0 requires WordPress version 6.4 or later.

2.3.4 (12 August 2026)

  • Restores the vendor directory to the WordPress.org package. 2.3.3 shipped without it, which broke SAML login for sites that took the update [#499].

2.3.3 (11 August 2026)

  • Security: Fixes an account takeover where an accent-insensitive database collation could match a SAML attribute to the wrong WordPress user. User lookup is now verified with a case-insensitive, accent-sensitive comparison [#495].
  • Adds PHP 8.5 compatibility [#482].
  • Updates dependencies [#492][#494].

2.3.2 (15 May 2026)

  • Update dependencies [#477].

2.3.1 (March 6, 2026)

  • Adds wp_saml_auth_auto_add_to_blog filter to control whether auto-provisioned users are added to sites in multisite environments [#465].
  • When wp_saml_auth_auto_add_to_blog returns false, the wp_saml_auth_new_user_authenticated action will receive a user with no role on the current site. Hooks relying on $user->roles being non-empty should account for this [#465].

2.3.0 (January 8, 2026)

  • Adds PHP 8.4 compatibility [#410].
  • Increases minimum supported PHP version to 7.4.
  • Compatible with WordPress 6.9
  • Fix warning message on the plugin’s settings page for users who aren’t using SimpleSAML [#445][#451].
  • Skip SimpleSAMLphp autoloader discovery when the SimpleSAML\Auth\Simple class is already loaded [#444].
  • Adds wp_saml_auth_internal_config filter to allow customization of the OneLogin SAML configuration [#497].
  • Fix autoloader detection logic for Composer-installed SimpleSAMLphp.[#452]
  • Fix incorrect warning display when SimpleSAMLphp version detection succeeds. [#455]

2.2.0 (9 June 2024)

  • Add a hook to modify returned attributes. [#379]
  • Updates onelogin/php-saml to 4.2.0. [#402]
  • Adds warnings and the option to disable SAML when using a vulnerable version of simplesamlphp [#402]

Vollständiges Änderungsprotokoll auf WordPress.org →

Für Entwickler

Ist das dein Plugin? Zeigen Sie die Zahlen.

Fügen Sie Ihrer Website, Docs oder GitHub Readme ein Live-Badge hinzu. Es wird von selbst aktualisiert - kein Konto erforderlich.

Aktiv installiert Badge Bewertungsabzeichen Gesundheits-Score-Abzeichen

Best WP SAML Auth alternatives

All authentication plugins →
Alternativen
Rang Plugin Aktive Installationen Wertung Aktualisierten Gesundheit
1 Limit Login Attempts Limit Login Attempts Limit rate of login attempts, including by way of cookies, for each IP. Fully customizable. von Automattic 200K+ ★★★★★★★★★★ 4.6 (202) Vor 4 Jahren 47
2 Two Factor Two Factor Enable Two-Factor Authentication (2FA) using time-based one-time passwords (TOTP), email… von WordPress.org 100K+ ★★★★★★★★★★ 4.8 (209) Vor 2 Monaten 87
3 WPS Limit Login WPS Limit Login WPS Limit login limit connection attempts by IP address by NicolasKulka 100K+ ★★★★★★★★★★ 4.9 (83) Vor 2 Tagen 81
4 WP-Mitglieder-Mitgliedschafts-Plugin WP-Mitglieder-Mitgliedschafts-Plugin Das ursprüngliche WordPress-Mitgliedschafts-Plugin mit Inhaltseinschränkung, Benutzer-Login, benutzerdefinierte… von Chad Butler 50K+ ★★★★★★★★★★ 4.6 (272) Vor 3 Wochen 83
5 Google Authenticator Google Authenticator Google Authenticator for your WordPress blog. by Ivan 20K+ ★★★★★★★★★★ 4.3 (135) Vor 3 Monaten 83
6 WP Limit Login Attempts WP Limit Login Attempts Limit rate of login attempts and block IP temporarily. Brute force attack protection. GDPR… von Arshid 10K+ ★★★★★★★★★★ 4.6 (300) Vor 2 Monaten 84
7 Anmelden für Google Apps von wpauth Anmelden für Google Apps von wpauth Einfache sichere Anmeldung und Benutzerverwaltung über Ihren Google-Arbeitsbereich für WordPress (mit… von Syed Balkhi 10K+ ★★★★★★★★★★ 4.6 (64) Vor 2 Monaten 84
8 Login von Auth0 Login von Auth0 Login by Auth0 bietet verbesserte Benutzername / Passwort Login, passwortlose Anmeldung, Social Login… von auth0 10K+ ★★★★★★★★★★ 3.1 (18) Vor 2 Jahren 34
9 Two Factor (2FA) Authentication via Email Two Factor (2FA) Authentication via Email Enable one-click login with this WordPress Two-Factor Authentication (2FA) plugin… von Sully 9K+ ★★★★★★★★★★ 5 (4) Vor 4 Wochen 83
10 Authorizer Authorizer Authorizer limits login attempts, restricts access to specific users, and authenticates… by Paul Ryan 7K+ ★★★★★★★★★★ 5 (20) Vor 3 tagen 78

Fragen und Antworten

WP SAML Auth: quick answers

Gerade Antworten, gezogen von Live WordPress.org Daten.

Quelle: WordPress.org

Is WP SAML Auth free?

Yes. WP SAML Auth is free to download and use from the official WordPress.org plugin directory.

Is WP SAML Auth safe to use in 2026?

WP SAML Auth is a solid plugin choice in 2026, with a few things worth checking first. It runs on 7K+ sites, is rated 4.5/5 and was last updated 3 months ago, and scores 71/100 on our health check.

How many websites use WP SAML Auth?

WP SAML Auth is active on 7K+ WordPress websites and has been downloaded 245,760 times since it launched in April 2016. It was downloaded 7,170 times in the last 30 days.

Does WP SAML Auth work with WordPress 7.1?

WP SAML Auth is officially tested up to WordPress 7.0.9, while the latest release is 7.1.5. It may still work, but try it on a staging site first.

What PHP version does WP SAML Auth need?

WP SAML Auth requires PHP 7.4 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.

When was WP SAML Auth last updated?

Die neueste Version, 2.3.4, wurde am 12. August 2026 (vor 3 Monaten) veröffentlicht.

Who makes WP SAML Auth?

WP SAML Auth is developed and maintained by Pantheon Systems.

What are the best alternatives to WP SAML Auth?

The most popular alternatives to WP SAML Auth are Limit Login Attempts (200K+ installs), Two Factor (100K+ installs) and WPS Limit Login (100K+ installs).

Angetrieben von PageForge

Eine Vorlage und eine Tabelle. Eine echte Seite für jede Suche.

PageForge Verwandelt jede Zeile eines CSV in eine WordPress-Seite mit eigenem Titel, URL, SEO Felder und Schema entworfen. Kostenlos auf WordPress.org.

  • CSV und XLSX, plus Google Sheets auf Beruf und Unternehmen
  • seinen eigenen Titel, URL, SEO Felder und Schema für jede Seite
  • Arbeitet mit dem Blockeditor, Elementor, Divi und Avada
  • Kostenlos auf WordPress.org, keine Kreditkarte

↑↓ bewegen↵ öffnen