Update version (#1994)

register-approval
Christophe Maudoux 6 years ago
parent a44223e358
commit 86e7140624
  1. 2
      lemonldap-ng-common/lib/Lemonldap/NG/Common/Safelib.pm
  2. 10
      lemonldap-ng-handler/t/61-Lemonldap-NG-Handler-PSGI-Server.t
  3. 1
      lemonldap-ng-handler/t/lmConf-1.json

@ -12,7 +12,7 @@ use Lemonldap::NG::Common::IPv6;
#use AutoLoader qw(AUTOLOAD);
our $VERSION = '2.0.0';
our $VERSION = '2.0.7';
# Set here all the names of functions that must be available in Safe objects.
# Not that only functions, not methods, can be written here

@ -41,9 +41,15 @@ ok( $h{'Auth-User'} eq 'dwho', 'Header Auth-User is set to "dwho"' )
count(1);
# Request an URI protected by custom function -> allowed
ok( $res = $client->_get( '/test-uri1/dwho', undef, undef, "lemonldap=$sessionId" ),
ok( $res = $client->_get( '/test-restricted_uri/dwho/', undef, undef, "lemonldap=$sessionId" ),
'Authentified query' );
ok( $res->[0] == 200, '/test-uri1 -> Code is 200' ) or explain( $res, 200 );
ok( $res->[0] == 200, '/test-restricted_uri -> Code is 200' ) or explain( $res, 200 );
count(2);
# Request an URI protected by custom function -> denied
ok( $res = $client->_get( '/test-restricted_uri/dwho', undef, undef, "lemonldap=$sessionId" ),
'Denied query' );
ok( $res->[0] == 403, '/test-restricted_uri -> Code is 403' ) or explain( $res->[0], 403 );
count(2);
# Request an URI protected by custom function -> allowed

@ -45,6 +45,7 @@
"^/AuthWeak(?#AuthnLevel=1)": "accept",
"^/test-uri1": "varIsInUri($ENV{REQUEST_URI}, '/test-uri1/', $uid, 1)",
"^/test-uri2": "varIsInUri($ENV{REQUEST_URI}, '/test-uri2/', $uid)",
"^/test-restricted_uri": "varIsInUri($ENV{REQUEST_URI}, '/test-restricted_uri/', \"$uid/\", 1)",
"^/logout": "logout_sso",
"^/deny": "deny",
"default": "accept"

Loading…
Cancel
Save