|
@@ -31,13 +31,13 @@ |
|
|
block discarded – undo |
|
31
|
31
|
throw new Exception("Attempt to register new token in unacceptable context."); |
|
32
|
32
|
} |
|
33
|
33
|
|
|
34
|
|
-$fido2Scope = ( $state['FIDO2Scope'] === null ? $state['FIDO2DerivedScope'] : $state['FIDO2Scope'] ); |
|
|
34
|
+$fido2Scope = ($state['FIDO2Scope'] === null ? $state['FIDO2DerivedScope'] : $state['FIDO2Scope']); |
|
35
|
35
|
if ($fido2Scope === NULL) { |
|
36
|
36
|
throw new Exception("FIDO2Scope cannot be null!"); |
|
37
|
37
|
} |
|
38
|
38
|
$regObject = new WebAuthnRegistrationEvent( |
|
39
|
39
|
$_POST['type'], |
|
40
|
|
- ( $state['FIDO2Scope'] === null ? $state['FIDO2DerivedScope'] : $state['FIDO2Scope'] ), |
|
|
40
|
+ ($state['FIDO2Scope'] === null ? $state['FIDO2DerivedScope'] : $state['FIDO2Scope']), |
|
41
|
41
|
$state['FIDO2SignupChallenge'], |
|
42
|
42
|
$state['IdPMetadata']['entityid'], |
|
43
|
43
|
base64_decode($_POST['attestation_object']), |
Please login to merge, or discard this patch.