Commit 70a28a04 authored by Yadd's avatar Yadd
Browse files

Fix route conflict (fixes: #1290)

parent 93b491e0
......@@ -75,17 +75,26 @@ sub init {
}
$self->server( Lemonldap::NG::Common::PSGI::SOAPServer->new );
if ( $self->conf->{soapSessionServer} ) {
$self->addUnauthRoute( sessions => 'unauthSessions', ['POST'] );
$self->addUnauthRoute(
sessions => { '*' => 'unauthSessions' },
['POST']
);
$self->addUnauthRoute(
adminSessions => 'unauthAdminSessions',
['POST']
);
$self->addAuthRoute( sessions => 'badSoapRequest', ['POST'] );
$self->addAuthRoute( adminSessions => 'badSoapRequest', ['POST'] );
$self->addAuthRoute(
sessions => { '*' => 'badSoapRequest' },
['POST']
);
$self->addAuthRoute(
adminSessions => { '*' => 'badSoapRequest' },
['POST']
);
}
if ( $self->conf->{soapConfigServer} ) {
$self->addUnauthRoute( config => 'config', ['POST'] );
$self->addAuthRoute( config => 'badSoapRequest', ['POST'] );
$self->addUnauthRoute( config => { '*' => 'config' }, ['POST'] );
$self->addAuthRoute( config => { '*' => 'badSoapRequest' }, ['POST'] );
}
1;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment