Created
June 14, 2013 19:12
-
-
Save marktheunissen/5784425 to your computer and use it in GitHub Desktop.
Patch for simplesaml auth
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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