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
13514267
Commit
13514267
authored
Dec 22, 2016
by
Yadd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CAS in progress (#595)
NB: I know that test is broken for now
parent
5ac69452
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
7 deletions
+28
-7
lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Issuer/CAS.pm
lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Issuer/CAS.pm
+2
-2
lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Issuer.pm
lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Issuer.pm
+3
-3
lemonldap-ng-portal/t/31-Auth-and-issuer-CAS.t
lemonldap-ng-portal/t/31-Auth-and-issuer-CAS.t
+23
-2
No files found.
lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Issuer/CAS.pm
View file @
13514267
...
...
@@ -194,14 +194,14 @@ sub run {
$self
->
lmLog
(
"
URL
$url
detected as an CAS LOGOUT URL
",
'
debug
'
);
# GET parameters
my
$logout_url
=
$
self
->
param
('
url
');
my
$logout_url
=
$
req
->
param
('
url
');
# Delete linked CAS sessions
$self
->
deleteCasSecondarySessions
(
$session_id
);
# Delete local session
unless
(
$self
->
_deleteSession
(
$self
->
p
->
_deleteSession
(
$self
->
p
->
getApacheSession
(
$session_id
,
1
)
)
)
...
...
lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Issuer.pm
View file @
13514267
...
...
@@ -75,7 +75,7 @@ sub _redirect {
$self
->
p
->
sessionDatas
,
@
{
$self
->
p
->
afterDatas
},
sub
{
return
$self
->
run
(
@
_
,
@path
);
return
$self
->
run
(
@
_
,
@path
);
}
]
);
...
...
@@ -90,7 +90,7 @@ sub _pRedirect {
# Case 3: authentified user, launch
sub
_forAuthUser
{
my
(
$self
,
$req
)
=
@_
;
my
(
$self
,
$req
,
@path
)
=
@_
;
return
$self
->
p
->
do
(
$req
,
[
...
...
@@ -98,7 +98,7 @@ sub _forAuthUser {
'
controlUrl
',
@
{
$self
->
p
->
forAuthUser
},
sub
{
return
$self
->
run
(
@
_
);
return
$self
->
run
(
@
_
,
@path
);
},
]
);
...
...
lemonldap-ng-portal/t/31-Auth-and-issuer-CAS.t
View file @
13514267
...
...
@@ -7,7 +7,7 @@ BEGIN {
require
'
t/test-lib.pm
';
}
my
$maintests
=
19
;
my
$maintests
=
22
;
my
$debug
=
'
debug
';
my
(
$issuer
,
$sp
,
$res
);
my
%handlerOR
=
(
issuer
=>
[]
,
sp
=>
[]
);
...
...
@@ -116,7 +116,28 @@ SKIP: {
),
'
Query SP for logout
'
);
print
STDERR
Dumper
(
$res
);
ok
(
$res
->
[
0
]
==
200
,
'
Response is 200
'
)
or
explain
(
$res
->
[
0
],
200
);
ok
(
$res
->
[
2
]
->
[
0
]
=~
m#iframe src="http://auth.idp.com(/cas/logout)\?(.+?)"#s
,
'
Found iframe
'
);
#print STDERR Dumper($res);
# Query IdP with iframe src
$url
=
$
1
;
$query
=
$
2
;
switch
('
issuer
');
ok
(
$res
=
$issuer
->
_get
(
$
1
,
query
=>
$query
,
accept
=>
'
text/html
',
cookie
=>
"
lemonldap=
$idpId
"
),
'
Get iframe from IdP
'
);
}
count
(
$maintests
);
...
...
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