Skip to content

Instantly share code, notes, and snippets.

@marktheunissen
Created June 14, 2013 19:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marktheunissen/5784425 to your computer and use it in GitHub Desktop.
Save marktheunissen/5784425 to your computer and use it in GitHub Desktop.
Patch for simplesaml auth
diff --git a/sites/all/modules/contrib/simplesamlphp_auth/simplesamlphp_auth.module b/sites/all/modules/contrib/simplesamlphp_auth/simplesamlphp_auth.module
index 05ceba3..f9b7d3f 100644
--- a/sites/all/modules/contrib/simplesamlphp_auth/simplesamlphp_auth.module
+++ b/sites/all/modules/contrib/simplesamlphp_auth/simplesamlphp_auth.module
@@ -159,6 +159,11 @@ function simplesamlphp_auth_init() {
global $_simplesamlphp_auth_saml_config;
global $_simplesamlphp_auth_saml_version;
+ // Bail on pages that aren't concerned with user login.
+ if (arg(0) !== 'saml_login' && arg(0) !== 'user' && arg(0) !== 'my-account') {
+ return;
+ }
+
if (!_simplesamlphp_auth_isEnabled()) {
// Exit without initializing.
return;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment