Unit tests for #2726
This commit is contained in:
parent
9da6310037
commit
4a0ba0fea9
|
@ -29,6 +29,7 @@ SKIP: {
|
|||
u2fSelfRegistration => 1,
|
||||
u2fActivation => 1,
|
||||
u2fAuthnLevel => 5,
|
||||
restSessionServer =>1,
|
||||
skipUpgradeConfirmation => 1,
|
||||
sfManagerRule => '$uid eq "dwho"',
|
||||
portalMainLogo => 'common/logos/logo_llng_old.png',
|
||||
|
@ -151,6 +152,7 @@ SKIP: {
|
|||
'Post code'
|
||||
);
|
||||
$id = expectCookie($res);
|
||||
expectSessionAttributes($client, $id, _2f => "totp");
|
||||
|
||||
# Get 2F register form
|
||||
ok(
|
||||
|
@ -440,6 +442,7 @@ JjTJecOOS+88fK8qL1TrYv5rapIdqUI7aQ==
|
|||
'Push U2F signature'
|
||||
);
|
||||
$id = expectCookie($res);
|
||||
expectSessionAttributes($client, $id, _2f => "u");
|
||||
ok(
|
||||
$res = $client->_get(
|
||||
'/2fregisters',
|
||||
|
|
|
@ -84,6 +84,7 @@ ok(
|
|||
);
|
||||
count(1);
|
||||
my $id = expectCookie($res);
|
||||
expectSessionAttributes($client, $id, _2f => "work");
|
||||
$client->logout($id);
|
||||
|
||||
clean_sessions();
|
||||
|
@ -167,6 +168,7 @@ ok(
|
|||
);
|
||||
count(1);
|
||||
$id = expectCookie($res);
|
||||
expectSessionAttributes($client, $id, _2f => "home");
|
||||
|
||||
# Verify Authn Level
|
||||
ok( $res = $client->_get("/sessions/global/$id"), 'Get session' );
|
||||
|
|
Loading…
Reference in New Issue