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
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
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
Xavier Bachelot
lemonldap-ng
Commits
b30d3db3
Commit
b30d3db3
authored
Mar 03, 2018
by
Yadd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tidy
parent
0c4fc4b8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
17 deletions
+17
-17
lemonldap-ng-common/lib/Lemonldap/NG/Common/Session/REST.pm
lemonldap-ng-common/lib/Lemonldap/NG/Common/Session/REST.pm
+5
-6
lemonldap-ng-manager/lib/Lemonldap/NG/Manager/U2F.pm
lemonldap-ng-manager/lib/Lemonldap/NG/Manager/U2F.pm
+11
-10
lemonldap-ng-manager/site/coffee/u2f.coffee
lemonldap-ng-manager/site/coffee/u2f.coffee
+1
-1
No files found.
lemonldap-ng-common/lib/Lemonldap/NG/Common/Session/REST.pm
View file @
b30d3db3
...
@@ -61,16 +61,15 @@ sub delU2FKey {
...
@@ -61,16 +61,15 @@ sub delU2FKey {
my
$id
=
$req
->
params
('
sessionId
')
my
$id
=
$req
->
params
('
sessionId
')
or
return
$self
->
sendError
(
$req
,
'
sessionId is missing
',
400
);
or
return
$self
->
sendError
(
$req
,
'
sessionId is missing
',
400
);
# Try to read session
# Try to read session
my
$session
=
$self
->
getApacheSession
(
$mod
,
$id
)
my
$session
=
$self
->
getApacheSession
(
$mod
,
$id
)
or
return
$self
->
sendError
(
$req
,
undef
,
400
);
or
return
$self
->
sendError
(
$req
,
undef
,
400
);
# Delete U2F key attributs and update session
# Delete U2F key attributs and update session
$session
->
data
->
{
_u2fKeyHandle
}
=
'';
$session
->
data
->
{
_u2fKeyHandle
}
=
'';
$session
->
data
->
{
_u2fUserKey
}
=
'';
$session
->
data
->
{
_u2fUserKey
}
=
'';
$session
->
update
(
\
%
{
$session
->
data
}
);
$session
->
update
(
\
%
{
$session
->
data
}
);
Lemonldap::NG::Handler::PSGI::
Main
->
localUnlog
(
$req
,
$id
);
Lemonldap::NG::Handler::PSGI::
Main
->
localUnlog
(
$req
,
$id
);
if
(
$session
->
error
)
{
if
(
$session
->
error
)
{
return
$self
->
sendError
(
$req
,
$session
->
error
,
200
);
return
$self
->
sendError
(
$req
,
$session
->
error
,
200
);
...
...
lemonldap-ng-manager/lib/Lemonldap/NG/Manager/U2F.pm
View file @
b30d3db3
...
@@ -27,26 +27,27 @@ use constant defaultRoute => 'u2f.html#/persistent';
...
@@ -27,26 +27,27 @@ use constant defaultRoute => 'u2f.html#/persistent';
sub
addRoutes
{
sub
addRoutes
{
my
(
$self
,
$conf
)
=
@_
;
my
(
$self
,
$conf
)
=
@_
;
# Remote Procedure Call are defined in Lemonldap::NG::Common::Session::REST
# Remote Procedure Call are defined in Lemonldap::NG::Common::Session::REST
# HTML template
# HTML template
$self
->
addRoute
(
'
u2f.html
',
undef
,
['
GET
']
)
$self
->
addRoute
(
'
u2f.html
',
undef
,
['
GET
']
)
# READ
# READ
->
addRoute
(
u2f
=>
{
'
:sessionType
'
=>
'
sessions
'
},
->
addRoute
(
['
GET
']
)
u2f
=>
{
'
:sessionType
'
=>
'
sessions
'
},
['
GET
']
# DELETE U2F KEY ATTRIBUTS
)
# DELETE U2F KEY ATTRIBUTS
->
addRoute
(
->
addRoute
(
u2f
=>
{
'
:sessionType
'
=>
{
'
:sessionId
'
=>
'
delU2FKey
'
}
},
u2f
=>
{
'
:sessionType
'
=>
{
'
:sessionId
'
=>
'
delU2FKey
'
}
},
['
DELETE
']
['
DELETE
']
);
);
# UPDATE U2F KEY ATTRIBUTS
# UPDATE U2F KEY ATTRIBUTS
# ->addRoute(
# ->addRoute(
# u2f => { ':sessionType' => { ':sessionId' => { ':updateSession' } },
# u2f => { ':sessionType' => { ':sessionId' => { ':updateSession' } },
# ['PUT']
# ['PUT']
#);
#);
$self
->
setTypes
(
$conf
);
$self
->
setTypes
(
$conf
);
...
...
lemonldap-ng-manager/site/coffee/u2f.coffee
View file @
b30d3db3
...
@@ -150,7 +150,7 @@ llapp.controller 'SessionsExplorerCtrl', ['$scope', '$translator', '$location',
...
@@ -150,7 +150,7 @@ llapp.controller 'SessionsExplorerCtrl', ['$scope', '$translator', '$location',
#$scope.currentScope.remove()
#$scope.currentScope.remove()
$scope
.
waiting
=
false
$scope
.
waiting
=
false
$scope
.
showT
=
true
$scope
.
showT
=
true
# Open node
# Open node
$scope
.
stoggle
=
(
scope
)
->
$scope
.
stoggle
=
(
scope
)
->
node
=
scope
.
$modelValue
node
=
scope
.
$modelValue
...
...
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