Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
lemonldap-ng
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Maxime Besson
lemonldap-ng
Commits
3d23dc27
Commit
3d23dc27
authored
Dec 22, 2016
by
Yadd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CAS in progress (#595)
parent
72814818
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
8 deletions
+9
-8
lemonldap-ng-handler/lib/Lemonldap/NG/Handler/Main/Run.pm
lemonldap-ng-handler/lib/Lemonldap/NG/Handler/Main/Run.pm
+1
-1
lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Auth/CAS.pm
lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Auth/CAS.pm
+1
-1
lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Issuer/CAS.pm
lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Issuer/CAS.pm
+5
-4
lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Process.pm
lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Process.pm
+0
-1
lemonldap-ng-portal/t/31-Auth-and-issuer-CAS.t
lemonldap-ng-portal/t/31-Auth-and-issuer-CAS.t
+2
-1
No files found.
lemonldap-ng-handler/lib/Lemonldap/NG/Handler/Main/Run.pm
View file @
3d23dc27
...
...
@@ -614,7 +614,7 @@ sub localUnlog {
if
(
$id
//
=
$class
->
fetchId
)
{
# Delete thread datas
if
(
$id
eq
$class
->
datas
->
{
_session_id
}
)
{
if
(
$
class
->
datas
and
$
id
eq
$class
->
datas
->
{
_session_id
}
)
{
$class
->
datas
(
{}
);
}
...
...
lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Auth/CAS.pm
View file @
3d23dc27
...
...
@@ -190,7 +190,7 @@ sub authenticate {
# Set authenticationLevel.
sub
setAuthSessionInfo
{
my
(
$self
,
$req
)
=
@_
;
$req
->
{
sessionInfo
}
->
{
authenticationLevel
}
=
$self
->
{
CASa
uthnLevel
};
$req
->
{
sessionInfo
}
->
{
authenticationLevel
}
=
$self
->
conf
->
{
CASA
uthnLevel
};
PE_OK
;
}
...
...
lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Issuer/CAS.pm
View file @
3d23dc27
...
...
@@ -73,7 +73,7 @@ sub run {
my
$casServiceTicket
;
# Renew
if
(
$renew
eq
'
true
'
)
{
if
(
$renew
and
$renew
eq
'
true
'
)
{
# Authentication must be replayed
$self
->
lmLog
(
"
Authentication renew requested
",
'
debug
'
);
...
...
@@ -136,7 +136,8 @@ sub run {
my
$casRenewFlag
=
0
;
my
$last_authn_utime
=
$self
->
{
sessionInfo
}
->
{
_lastAuthnUTime
}
||
0
;
if
(
time
()
-
$last_authn_utime
<
$self
->
{
portalForceAuthnInterval
}
)
time
()
-
$last_authn_utime
<
$self
->
conf
->
{
portalForceAuthnInterval
}
)
{
$self
->
lmLog
(
"
Authentication is recent, will set CAS renew flag to true
",
...
...
@@ -367,7 +368,7 @@ sub validate {
}
# Check renew
if
(
$renew
eq
'
true
'
)
{
if
(
$renew
and
$renew
eq
'
true
'
)
{
# We should check the ST was delivered with primary credentials
$self
->
lmLog
(
"
Renew flag detected
",
'
debug
'
);
...
...
@@ -511,7 +512,7 @@ sub _validate2 {
}
# Check renew
if
(
$renew
eq
'
true
'
)
{
if
(
$renew
and
$renew
eq
'
true
'
)
{
# We should check the ST was delivered with primary credentials
$self
->
lmLog
(
"
Renew flag detected
",
'
debug
'
);
...
...
lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Process.pm
View file @
3d23dc27
...
...
@@ -133,7 +133,6 @@ sub deleteSession {
return
PE_ERROR
;
}
else
{
HANDLER
->
localUnlog
(
$req
->
id
);
$self
->
lmLog
(
"
Session
$req
->{id} deleted from global storage
",
'
debug
'
);
}
...
...
lemonldap-ng-portal/t/31-Auth-and-issuer-CAS.t
View file @
3d23dc27
...
...
@@ -8,7 +8,7 @@ BEGIN {
}
my
$maintests
=
24
;
my
$debug
=
'
debug
';
my
$debug
=
'
error
';
my
(
$issuer
,
$sp
,
$res
);
my
%handlerOR
=
(
issuer
=>
[]
,
sp
=>
[]
);
...
...
@@ -20,6 +20,7 @@ SKIP: {
skip
'
AuthCAS not found
',
$maintests
;
}
no
warnings
'
once
';
*
AuthCAS::
get_https2
=
*mygethttps2
;
ok
(
$issuer
=
issuer
(),
'
Issuer portal
'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment