summaryrefslogtreecommitdiffstats
path: root/modules/oauth/www/authorize.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules/oauth/www/authorize.php')
-rw-r--r--modules/oauth/www/authorize.php8
1 files changed, 3 insertions, 5 deletions
diff --git a/modules/oauth/www/authorize.php b/modules/oauth/www/authorize.php
index e0a9bb0..3b700f6 100644
--- a/modules/oauth/www/authorize.php
+++ b/modules/oauth/www/authorize.php
@@ -25,11 +25,9 @@ $config = SimpleSAML_Configuration::getInstance();
$session = SimpleSAML_Session::getInstance();
$as = $oauthconfig->getString('auth');
-if (!$session->isValid($as)) {
- SimpleSAML_Auth_Default::initLogin($as, SimpleSAML_Utilities::selfURL());
-}
-
-$attributes = $session->getAttributes();
+$as = new SimpleSAML_Auth_Simple($as);
+$as->requireAuth();
+$attributes = $as->getAttributes();
#print_r($attributes);