Install

Works with Drupal: ^8 || ^9

Using Composer to manage Drupal site dependencies

Alternative installation files

Download tar.gz 73.52 KB
MD5: a81ac3ebfcd9b08a3744d1e8d9dbe41e
SHA-1: afdbf4c62975859675bbe352cd279e984ed72546
SHA-256: ad9d20bde7a3ae93652a09e718f8717a3cfd31414a736915d636b9090323111e
Download zip 102.43 KB
MD5: 98c54615532f5e8239b1236dcaa0ce74
SHA-1: 5854f6b7c0084fbddfcef9ba2e1b3a09ec2361b6
SHA-256: af24cf5fa4b58f6ac5225ecaf14237f09de598fe0da0baa62fa334a3acdcce66

Release notes

Please test this version, there will be a 8.x-3.0 release soonish. (Yes it works on Drupal 9 as well.)

The module is out of alpha now. That is: almost all outstanding half finished functionality (some of which stems from 2016) has been finished, and we're able to make a reasonable guarantee that we won't break compatibility during this major version. Because there's a clearer plan for the future: #2882568-6: Plan for SAML Authentication 4.x

It unfortunately doesn't mean (as said in the past) that the module has test coverage: #3202137: Write tests

Upgrading

Run update.php / drush updb.

If you had the 'Allow SAML users to log in directly' (drupal_saml_login) configuration setting turned on: this setting is superseded by a permission. Review whether you might want to turn the permission off for some user roles.

No really big things have changed since earlier versions (or indeed since 8.x-2.x) but - if you were relying on the internals of any of this module's classes earlier: test. A few (likely unimportant to you) methods have changed or been removed.

The 8.x-2.x branch is hereby marked "unsupported". The upgrade path is just as easy as from the 8.x-3.x version; just make sure your composer dependencies are met. The only reason for the major version jump in 2019 was a major version jump in the upstream php-saml dependency. Our own jump was because of an upstream security issue, and having no indication that the upstream 2.x version (which only supported PHP < 7.2) would keep being maintained.

Significant changes/fixes

  • Add submodule with a UI for mapping SAML attributes to user fields. (#2900968 by rael9, droath, roderik)
  • Add submodule with a UI for role assignment. (#3070028 by zeshan.ziya, droath, Antonnavi, piggito, rafaelferreir4, roderik)
  • Proper handling of logout requests - a.o.: #3132942 by azinck, adamfranco, roderik; #3183933 by johnjw59: Allow External Redirects on Logout Responses.
  • Add a configuration setting to log out the currently logged-in user when another user logs in through the IdP. Add warning messages when a user is logged in. (a.o. #3155968 by pvalappil, roderik)
  • Change 'Allow SAML users to log in directly' (drupal_saml_login) configuration setting to a user permission. (#3201411)

Other fixes

  • Fix Metadata being cached beyond the expiry date (#3144402 by pghaemim, roderik, larowlan)
  • Even more work on preventing "Leaked Metadata" exceptions (#3136339 by byrond, roderik, joshua1234511: Leaked metadata when using Rules 3.0-alpha6 -and Content Access?)

Other enhancements

  • Added method SamlAuthUserSyncEvent::isFirstLogin() for the benefit of subscribers who need to know this.
  • Debug option to show all login/logout errors on screen.
  • Display certificates/key formatted, in the configuration UI.
  • #2912717 by validoll: Use the `Forwarded-For-*` headers for proxy
  • #3125549 by vbouchet: Allow SSO authentication while maintenance mode is enabled
  • #3170734 by joelpittet: Enable support for FriendlyName Attributes
  • #3185846 by hexblot: Hide password change for SAML-authenticated users. E-mail field is hidden too.
  • Make login/logout requests cacheable.
  • Implement flood control on ACS/SLS routes.
Created by: roderik
Created on: 7 Mar 2021 at 21:22 UTC
Last updated: 28 Apr 2021 at 16:57 UTC
Bug fixes
New features
Insecure

Other releases