Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Maxime Besson
lemonldap-ng
Commits
2244a8c2
Commit
2244a8c2
authored
Mar 28, 2016
by
Yadd
Browse files
Split PSGI
parent
64523473
Changes
2
Hide whitespace changes
Inline
Side-by-side
lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main.pm
0 → 100644
View file @
2244a8c2
package
Lemonldap::NG::Portal::
Main
;
use
strict
;
use
Mouse
;
our
$VERSION
=
'
2.0.0
';
extends
qw(Lemonldap::NG::Handler::PSGI::Try Lemonldap::NG::Portal::Main::Init)
;
has
stack
=>
(
is
=>
'
rw
'
);
# ENTRY POINT METHODS
# -------------------
# All methods below have been declared as Lemonldap::NG::Common::PSGI::Router
# routes (see Lemonldap::NG::Portal::Main::Init)
sub
issuerForAuthUser
{
my
(
$self
,
$type
,
$req
)
=
@_
;
}
sub
issuerForUnauthUser
{
my
(
$self
,
$type
,
$req
)
=
@_
;
}
# TODO in run
# - mustRedirect
1
;
lemonldap-ng-portal/lib/Lemonldap/NG/Portal/
PSGI
.pm
→
lemonldap-ng-portal/lib/Lemonldap/NG/Portal/
Main/Init
.pm
View file @
2244a8c2
##@file
# FastCGI package for Lemonldap::NG portal
#
##@class Lemonldap::NG::Portal::
PSGI
##@class Lemonldap::NG::Portal::
Main::Init
# FastCGI class for Lemonldap::NG portal
package
Lemonldap::NG::Portal::
PSGI
;
package
Lemonldap::NG::Portal::
Main::
Init
;
use
strict
;
use
Mouse
;
...
...
@@ -14,8 +14,6 @@ our $VERSION = '2.0.0';
use
constant
HANDLER
=>
'
Lemonldap::NG::Handler::PSGI::API
';
extends
'
Lemonldap::NG::Handler::PSGI::Try
';
# Configuration storage
has
localConfig
=>
(
is
=>
'
rw
',
default
=>
sub
{
{}
}
);
has
conf
=>
(
is
=>
'
rw
',
default
=>
sub
{
{}
}
);
...
...
@@ -192,15 +190,4 @@ sub loadModule {
return
1
;
}
sub
issuerForAuthUser
{
my
(
$self
,
$type
,
$req
)
=
@_
;
}
sub
issuerForUnauthUser
{
my
(
$self
,
$type
,
$req
)
=
@_
;
}
# TODO in run
# - mustRedirect
1
;
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