Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Curriculum-Request
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tim Steiner
Curriculum-Request
Commits
9e9540b6
Commit
9e9540b6
authored
14 years ago
by
Tim Steiner
Browse files
Options
Downloads
Patches
Plain Diff
Don't try to do CAS auth if the unl_sso cookie isn't set.
parent
9f157cc7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
library/App/Controller/Action.php
+3
-13
3 additions, 13 deletions
library/App/Controller/Action.php
with
3 additions
and
13 deletions
library/App/Controller/Action.php
+
3
−
13
View file @
9e9540b6
...
...
@@ -18,23 +18,13 @@ class App_Controller_Action extends Unl_Controller_Action
protected
function
_transparentCasLogin
()
{
$session
=
new
Zend_Session_Namespace
(
__CLASS__
);
if
(
!
array_key_exists
(
'unl_sso'
,
$_COOKIE
))
{
// Only passively check for a login once per hour (per user)
if
(
$session
->
lastCasCheck
>
time
()
-
60
*
60
)
{
return
;
}
$session
->
lastCasCheck
=
time
();
}
else
{
$session
->
lastCasCheck
=
0
;
}
// The auth module is doing its thing (probably an active login or logout). Let it be.
if
(
get_class
(
$this
)
==
'Auth_IndexController'
)
{
return
;
}
Auth_UserModel
::
authenticateUser
();
if
(
array_key_exists
(
'unl_sso'
,
$_COOKIE
)
||
Zend_Auth
::
getInstance
()
->
hasIdentity
())
{
Auth_UserModel
::
authenticateUser
();
}
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment