public
nobgit
read
NobMail
Based on mailcow: dockerized
Languages
Repository composition by tracked source files.
PHP
49%
JavaScript
35%
HTML
9%
CSS
4%
Shell
2%
Python
1%
Lua
0%
Perl
0%
Ruby
0%
SCSS
0%
Create file
Wiki Documentation
Clone
https://nobgit.com/orgs/nobgit/nobmail.git
ssh://[email protected]:2222/orgs/nobgit/nobmail.git
Trace
data/web/inc/lib/WebAuthn/WebAuthn.php
Trace helps you understand code history line by line. See who changed each line, when it changed, and which commit introduced it.
WebAuthn.php
on main
Author
Date
Commit
Line
Code
andryyy
over 5 years ago
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 1
<?php
<?php
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 2
FreddlePat
over 4 years ago
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 3
namespace lbuchs\WebAuthn;
namespace lbuchs\WebAuthn;
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 4
use lbuchs\WebAuthn\Binary\ByteBuffer;
use lbuchs\WebAuthn\Binary\ByteBuffer;
andryyy
over 5 years ago
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 5
require_once 'WebAuthnException.php';
require_once 'WebAuthnException.php';
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 6
require_once 'Binary/ByteBuffer.php';
require_once 'Binary/ByteBuffer.php';
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 7
require_once 'Attestation/AttestationObject.php';
require_once 'Attestation/AttestationObject.php';
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 8
require_once 'Attestation/AuthenticatorData.php';
require_once 'Attestation/AuthenticatorData.php';
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 9
require_once 'Attestation/Format/FormatBase.php';
require_once 'Attestation/Format/FormatBase.php';
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 10
require_once 'Attestation/Format/None.php';
require_once 'Attestation/Format/None.php';
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 11
require_once 'Attestation/Format/AndroidKey.php';
require_once 'Attestation/Format/AndroidKey.php';
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 12
require_once 'Attestation/Format/AndroidSafetyNet.php';
require_once 'Attestation/Format/AndroidSafetyNet.php';
andryyy
over 5 years ago
46643af
[Web] FIDO2: Add Face ID via Apple
- Full commit hash
46643af00c8a8612081b933e027541838245b578- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 13
require_once 'Attestation/Format/Apple.php';
require_once 'Attestation/Format/Apple.php';
andryyy
over 5 years ago
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 14
require_once 'Attestation/Format/Packed.php';
require_once 'Attestation/Format/Packed.php';
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 15
require_once 'Attestation/Format/Tpm.php';
require_once 'Attestation/Format/Tpm.php';
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 16
require_once 'Attestation/Format/U2f.php';
require_once 'Attestation/Format/U2f.php';
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 17
require_once 'CBOR/CborDecoder.php';
require_once 'CBOR/CborDecoder.php';
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 18
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 19
/**
/**
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 20
* WebAuthn
* WebAuthn
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 21
* @author Lukas Buchs
* @author Lukas Buchs
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 22
* @license https://github.com/lbuchs/WebAuthn/blob/master/LICENSE MIT
* @license https://github.com/lbuchs/WebAuthn/blob/master/LICENSE MIT
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 23
*/
*/
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 24
class WebAuthn {
class WebAuthn {
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 25
// relying party
// relying party
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 26
private $_rpName;
private $_rpName;
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 27
private $_rpId;
private $_rpId;
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 28
private $_rpIdHash;
private $_rpIdHash;
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 29
private $_challenge;
private $_challenge;
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 30
private $_signatureCounter;
private $_signatureCounter;
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 31
private $_caFiles;
private $_caFiles;
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 32
private $_formats;
private $_formats;
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 33
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 34
/**
/**
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 35
* Initialize a new WebAuthn server
* Initialize a new WebAuthn server
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 36
* @param string $rpName the relying party name
* @param string $rpName the relying party name
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 37
* @param string $rpId the relying party ID = the domain name
* @param string $rpId the relying party ID = the domain name
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 38
* @param bool $useBase64UrlEncoding true to use base64 url encoding for binary data in json objects. Default is a RFC 1342-Like serialized string.
* @param bool $useBase64UrlEncoding true to use base64 url encoding for binary data in json objects. Default is a RFC 1342-Like serialized string.
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 39
* @throws WebAuthnException
* @throws WebAuthnException
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 40
*/
*/
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 41
public function __construct($rpName, $rpId, $allowedFormats=null, $useBase64UrlEncoding=false) {
public function __construct($rpName, $rpId, $allowedFormats=null, $useBase64UrlEncoding=false) {
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 42
$this->_rpName = $rpName;
$this->_rpName = $rpName;
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 43
$this->_rpId = $rpId;
$this->_rpId = $rpId;
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 44
$this->_rpIdHash = \hash('sha256', $rpId, true);
$this->_rpIdHash = \hash('sha256', $rpId, true);
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 45
ByteBuffer::$useBase64UrlEncoding = !!$useBase64UrlEncoding;
ByteBuffer::$useBase64UrlEncoding = !!$useBase64UrlEncoding;
andryyy
over 5 years ago
46643af
[Web] FIDO2: Add Face ID via Apple
- Full commit hash
46643af00c8a8612081b933e027541838245b578- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 46
$supportedFormats = array('android-key', 'android-safetynet', 'apple', 'fido-u2f', 'none', 'packed', 'tpm');
$supportedFormats = array('android-key', 'android-safetynet', 'apple', 'fido-u2f', 'none', 'packed', 'tpm');
andryyy
over 5 years ago
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 47
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 48
if (!\function_exists('\openssl_open')) {
if (!\function_exists('\openssl_open')) {
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 49
throw new WebAuthnException('OpenSSL-Module not installed');;
throw new WebAuthnException('OpenSSL-Module not installed');;
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 50
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 51
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 52
if (!\in_array('SHA256', \array_map('\strtoupper', \openssl_get_md_methods()))) {
if (!\in_array('SHA256', \array_map('\strtoupper', \openssl_get_md_methods()))) {
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 53
throw new WebAuthnException('SHA256 not supported by this openssl installation.');
throw new WebAuthnException('SHA256 not supported by this openssl installation.');
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 54
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 55
andryyy
over 5 years ago
46643af
[Web] FIDO2: Add Face ID via Apple
- Full commit hash
46643af00c8a8612081b933e027541838245b578- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 56
// default: all format
// default: all format
andryyy
over 5 years ago
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 57
if (!is_array($allowedFormats)) {
if (!is_array($allowedFormats)) {
andryyy
over 5 years ago
46643af
[Web] FIDO2: Add Face ID via Apple
- Full commit hash
46643af00c8a8612081b933e027541838245b578- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 58
$allowedFormats = $supportedFormats;
$allowedFormats = $supportedFormats;
andryyy
over 5 years ago
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 59
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 60
$this->_formats = $allowedFormats;
$this->_formats = $allowedFormats;
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 61
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 62
// validate formats
// validate formats
andryyy
over 5 years ago
46643af
[Web] FIDO2: Add Face ID via Apple
- Full commit hash
46643af00c8a8612081b933e027541838245b578- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 63
$invalidFormats = \array_diff($this->_formats, $supportedFormats);
$invalidFormats = \array_diff($this->_formats, $supportedFormats);
andryyy
over 5 years ago
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 64
if (!$this->_formats || $invalidFormats) {
if (!$this->_formats || $invalidFormats) {
andryyy
over 5 years ago
46643af
[Web] FIDO2: Add Face ID via Apple
- Full commit hash
46643af00c8a8612081b933e027541838245b578- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 65
throw new WebAuthnException('invalid formats on construct: ' . implode(', ', $invalidFormats));
throw new WebAuthnException('invalid formats on construct: ' . implode(', ', $invalidFormats));
andryyy
over 5 years ago
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 66
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 67
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 68
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 69
/**
/**
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 70
* add a root certificate to verify new registrations
* add a root certificate to verify new registrations
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 71
* @param string $path file path of / directory with root certificates
* @param string $path file path of / directory with root certificates
FreddlePat
over 4 years ago
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 72
* @param array|null $certFileExtensions if adding a direction, all files with provided extension are added. default: pem, crt, cer, der
* @param array|null $certFileExtensions if adding a direction, all files with provided extension are added. default: pem, crt, cer, der
andryyy
over 5 years ago
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 73
*/
*/
FreddlePat
over 4 years ago
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 74
public function addRootCertificates($path, $certFileExtensions=null) {
public function addRootCertificates($path, $certFileExtensions=null) {
andryyy
over 5 years ago
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 75
if (!\is_array($this->_caFiles)) {
if (!\is_array($this->_caFiles)) {
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 76
$this->_caFiles = array();
$this->_caFiles = array();
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 77
}
}
FreddlePat
over 4 years ago
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 78
if ($certFileExtensions === null) {
if ($certFileExtensions === null) {
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 79
$certFileExtensions = array('pem', 'crt', 'cer', 'der');
$certFileExtensions = array('pem', 'crt', 'cer', 'der');
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 80
}
}
andryyy
over 5 years ago
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 81
$path = \rtrim(\trim($path), '\\/');
$path = \rtrim(\trim($path), '\\/');
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 82
if (\is_dir($path)) {
if (\is_dir($path)) {
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 83
foreach (\scandir($path) as $ca) {
foreach (\scandir($path) as $ca) {
FreddlePat
over 4 years ago
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 84
if (\is_file($path . DIRECTORY_SEPARATOR . $ca) && \in_array(\strtolower(\pathinfo($ca, PATHINFO_EXTENSION)), $certFileExtensions)) {
if (\is_file($path . DIRECTORY_SEPARATOR . $ca) && \in_array(\strtolower(\pathinfo($ca, PATHINFO_EXTENSION)), $certFileExtensions)) {
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 85
$this->addRootCertificates($path . DIRECTORY_SEPARATOR . $ca);
$this->addRootCertificates($path . DIRECTORY_SEPARATOR . $ca);
andryyy
over 5 years ago
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 86
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 87
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 88
} else if (\is_file($path) && !\in_array(\realpath($path), $this->_caFiles)) {
} else if (\is_file($path) && !\in_array(\realpath($path), $this->_caFiles)) {
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 89
$this->_caFiles[] = \realpath($path);
$this->_caFiles[] = \realpath($path);
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 90
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 91
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 92
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 93
/**
/**
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 94
* Returns the generated challenge to save for later validation
* Returns the generated challenge to save for later validation
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 95
* @return ByteBuffer
* @return ByteBuffer
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 96
*/
*/
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 97
public function getChallenge() {
public function getChallenge() {
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 98
return $this->_challenge;
return $this->_challenge;
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 99
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 100
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 101
/**
/**
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 102
* generates the object for a key registration
* generates the object for a key registration
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 103
* provide this data to navigator.credentials.create
* provide this data to navigator.credentials.create
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 104
* @param string $userId
* @param string $userId
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 105
* @param string $userName
* @param string $userName
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 106
* @param string $userDisplayName
* @param string $userDisplayName
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 107
* @param int $timeout timeout in seconds
* @param int $timeout timeout in seconds
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 108
* @param bool $requireResidentKey true, if the key should be stored by the authentication device
* @param bool $requireResidentKey true, if the key should be stored by the authentication device
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 109
* @param bool|string $requireUserVerification indicates that you require user verification and will fail the operation
* @param bool|string $requireUserVerification indicates that you require user verification and will fail the operation
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 110
* if the response does not have the UV flag set.
* if the response does not have the UV flag set.
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 111
* Valid values:
* Valid values:
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 112
* true = required
* true = required
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 113
* false = preferred
* false = preferred
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 114
* string 'required' 'preferred' 'discouraged'
* string 'required' 'preferred' 'discouraged'
andryyy
over 5 years ago
46643af
[Web] FIDO2: Add Face ID via Apple
- Full commit hash
46643af00c8a8612081b933e027541838245b578- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 115
* @param bool|null $crossPlatformAttachment true for cross-platform devices (eg. fido usb),
* @param bool|null $crossPlatformAttachment true for cross-platform devices (eg. fido usb),
same change
46643af
[Web] FIDO2: Add Face ID via Apple
- Full commit hash
46643af00c8a8612081b933e027541838245b578- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 116
* false for platform devices (eg. windows hello, android safetynet),
* false for platform devices (eg. windows hello, android safetynet),
same change
46643af
[Web] FIDO2: Add Face ID via Apple
- Full commit hash
46643af00c8a8612081b933e027541838245b578- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 117
* null for both
* null for both
andryyy
over 5 years ago
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 118
* @param array $excludeCredentialIds a array of ids, which are already registered, to prevent re-registration
* @param array $excludeCredentialIds a array of ids, which are already registered, to prevent re-registration
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 119
* @return \stdClass
* @return \stdClass
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 120
*/
*/
andryyy
over 5 years ago
46643af
[Web] FIDO2: Add Face ID via Apple
- Full commit hash
46643af00c8a8612081b933e027541838245b578- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 121
public function getCreateArgs($userId, $userName, $userDisplayName, $timeout=20, $requireResidentKey=false, $requireUserVerification=false, $crossPlatformAttachment=null, $excludeCredentialIds=array()) {
public function getCreateArgs($userId, $userName, $userDisplayName, $timeout=20, $requireResidentKey=false, $requireUserVerification=false, $crossPlatformAttachment=null, $excludeCredentialIds=array()) {
andryyy
over 5 years ago
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 122
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 123
// validate User Verification Requirement
// validate User Verification Requirement
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 124
if (\is_bool($requireUserVerification)) {
if (\is_bool($requireUserVerification)) {
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 125
$requireUserVerification = $requireUserVerification ? 'required' : 'preferred';
$requireUserVerification = $requireUserVerification ? 'required' : 'preferred';
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 126
} else if (\is_string($requireUserVerification) && \in_array(\strtolower($requireUserVerification), ['required', 'preferred', 'discouraged'])) {
} else if (\is_string($requireUserVerification) && \in_array(\strtolower($requireUserVerification), ['required', 'preferred', 'discouraged'])) {
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 127
$requireUserVerification = \strtolower($requireUserVerification);
$requireUserVerification = \strtolower($requireUserVerification);
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 128
} else {
} else {
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 129
$requireUserVerification = 'preferred';
$requireUserVerification = 'preferred';
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 130
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 131
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 132
$args = new \stdClass();
$args = new \stdClass();
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 133
$args->publicKey = new \stdClass();
$args->publicKey = new \stdClass();
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 134
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 135
// relying party
// relying party
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 136
$args->publicKey->rp = new \stdClass();
$args->publicKey->rp = new \stdClass();
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 137
$args->publicKey->rp->name = $this->_rpName;
$args->publicKey->rp->name = $this->_rpName;
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 138
$args->publicKey->rp->id = $this->_rpId;
$args->publicKey->rp->id = $this->_rpId;
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 139
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 140
$args->publicKey->authenticatorSelection = new \stdClass();
$args->publicKey->authenticatorSelection = new \stdClass();
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 141
$args->publicKey->authenticatorSelection->userVerification = $requireUserVerification;
$args->publicKey->authenticatorSelection->userVerification = $requireUserVerification;
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 142
if ($requireResidentKey) {
if ($requireResidentKey) {
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 143
$args->publicKey->authenticatorSelection->requireResidentKey = true;
$args->publicKey->authenticatorSelection->requireResidentKey = true;
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 144
}
}
andryyy
over 5 years ago
46643af
[Web] FIDO2: Add Face ID via Apple
- Full commit hash
46643af00c8a8612081b933e027541838245b578- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 145
if (is_bool($crossPlatformAttachment)) {
if (is_bool($crossPlatformAttachment)) {
same change
46643af
[Web] FIDO2: Add Face ID via Apple
- Full commit hash
46643af00c8a8612081b933e027541838245b578- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 146
$args->publicKey->authenticatorSelection->authenticatorAttachment = $crossPlatformAttachment ? 'cross-platform' : 'platform';
$args->publicKey->authenticatorSelection->authenticatorAttachment = $crossPlatformAttachment ? 'cross-platform' : 'platform';
same change
46643af
[Web] FIDO2: Add Face ID via Apple
- Full commit hash
46643af00c8a8612081b933e027541838245b578- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 147
}
}
andryyy
over 5 years ago
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 148
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 149
// user
// user
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 150
$args->publicKey->user = new \stdClass();
$args->publicKey->user = new \stdClass();
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 151
$args->publicKey->user->id = new ByteBuffer($userId); // binary
$args->publicKey->user->id = new ByteBuffer($userId); // binary
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 152
$args->publicKey->user->name = $userName;
$args->publicKey->user->name = $userName;
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 153
$args->publicKey->user->displayName = $userDisplayName;
$args->publicKey->user->displayName = $userDisplayName;
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 154
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 155
$args->publicKey->pubKeyCredParams = array();
$args->publicKey->pubKeyCredParams = array();
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 156
$tmp = new \stdClass();
$tmp = new \stdClass();
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 157
$tmp->type = 'public-key';
$tmp->type = 'public-key';
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 158
$tmp->alg = -7; // ES256
$tmp->alg = -7; // ES256
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 159
$args->publicKey->pubKeyCredParams[] = $tmp;
$args->publicKey->pubKeyCredParams[] = $tmp;
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 160
unset ($tmp);
unset ($tmp);
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 161
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 162
$tmp = new \stdClass();
$tmp = new \stdClass();
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 163
$tmp->type = 'public-key';
$tmp->type = 'public-key';
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 164
$tmp->alg = -257; // RS256
$tmp->alg = -257; // RS256
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 165
$args->publicKey->pubKeyCredParams[] = $tmp;
$args->publicKey->pubKeyCredParams[] = $tmp;
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 166
unset ($tmp);
unset ($tmp);
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 167
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 168
// if there are root certificates added, we need direct attestation to validate
// if there are root certificates added, we need direct attestation to validate
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 169
// against the root certificate. If there are no root-certificates added,
// against the root certificate. If there are no root-certificates added,
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 170
// anonymization ca are also accepted, because we can't validate the root anyway.
// anonymization ca are also accepted, because we can't validate the root anyway.
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 171
$attestation = 'indirect';
$attestation = 'indirect';
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 172
if (\is_array($this->_caFiles)) {
if (\is_array($this->_caFiles)) {
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 173
$attestation = 'direct';
$attestation = 'direct';
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 174
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 175
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 176
$args->publicKey->attestation = \count($this->_formats) === 1 && \in_array('none', $this->_formats) ? 'none' : $attestation;
$args->publicKey->attestation = \count($this->_formats) === 1 && \in_array('none', $this->_formats) ? 'none' : $attestation;
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 177
$args->publicKey->extensions = new \stdClass();
$args->publicKey->extensions = new \stdClass();
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 178
$args->publicKey->extensions->exts = true;
$args->publicKey->extensions->exts = true;
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 179
$args->publicKey->timeout = $timeout * 1000; // microseconds
$args->publicKey->timeout = $timeout * 1000; // microseconds
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 180
$args->publicKey->challenge = $this->_createChallenge(); // binary
$args->publicKey->challenge = $this->_createChallenge(); // binary
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 181
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 182
//prevent re-registration by specifying existing credentials
//prevent re-registration by specifying existing credentials
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 183
$args->publicKey->excludeCredentials = array();
$args->publicKey->excludeCredentials = array();
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 184
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 185
if (is_array($excludeCredentialIds)) {
if (is_array($excludeCredentialIds)) {
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 186
foreach ($excludeCredentialIds as $id) {
foreach ($excludeCredentialIds as $id) {
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 187
$tmp = new \stdClass();
$tmp = new \stdClass();
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 188
$tmp->id = $id instanceof ByteBuffer ? $id : new ByteBuffer($id); // binary
$tmp->id = $id instanceof ByteBuffer ? $id : new ByteBuffer($id); // binary
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 189
$tmp->type = 'public-key';
$tmp->type = 'public-key';
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 190
$tmp->transports = array('usb', 'ble', 'nfc', 'internal');
$tmp->transports = array('usb', 'ble', 'nfc', 'internal');
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 191
$args->publicKey->excludeCredentials[] = $tmp;
$args->publicKey->excludeCredentials[] = $tmp;
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 192
unset ($tmp);
unset ($tmp);
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 193
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 194
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 195
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 196
return $args;
return $args;
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 197
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 198
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 199
/**
/**
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 200
* generates the object for key validation
* generates the object for key validation
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 201
* Provide this data to navigator.credentials.get
* Provide this data to navigator.credentials.get
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 202
* @param array $credentialIds binary
* @param array $credentialIds binary
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 203
* @param int $timeout timeout in seconds
* @param int $timeout timeout in seconds
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 204
* @param bool $allowUsb allow removable USB
* @param bool $allowUsb allow removable USB
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 205
* @param bool $allowNfc allow Near Field Communication (NFC)
* @param bool $allowNfc allow Near Field Communication (NFC)
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 206
* @param bool $allowBle allow Bluetooth
* @param bool $allowBle allow Bluetooth
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 207
* @param bool $allowInternal allow client device-specific transport. These authenticators are not removable from the client device.
* @param bool $allowInternal allow client device-specific transport. These authenticators are not removable from the client device.
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 208
* @param bool|string $requireUserVerification indicates that you require user verification and will fail the operation
* @param bool|string $requireUserVerification indicates that you require user verification and will fail the operation
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 209
* if the response does not have the UV flag set.
* if the response does not have the UV flag set.
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 210
* Valid values:
* Valid values:
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 211
* true = required
* true = required
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 212
* false = preferred
* false = preferred
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 213
* string 'required' 'preferred' 'discouraged'
* string 'required' 'preferred' 'discouraged'
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 214
* @return \stdClass
* @return \stdClass
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 215
*/
*/
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 216
public function getGetArgs($credentialIds=array(), $timeout=20, $allowUsb=true, $allowNfc=true, $allowBle=true, $allowInternal=true, $requireUserVerification=false) {
public function getGetArgs($credentialIds=array(), $timeout=20, $allowUsb=true, $allowNfc=true, $allowBle=true, $allowInternal=true, $requireUserVerification=false) {
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 217
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 218
// validate User Verification Requirement
// validate User Verification Requirement
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 219
if (\is_bool($requireUserVerification)) {
if (\is_bool($requireUserVerification)) {
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 220
$requireUserVerification = $requireUserVerification ? 'required' : 'preferred';
$requireUserVerification = $requireUserVerification ? 'required' : 'preferred';
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 221
} else if (\is_string($requireUserVerification) && \in_array(\strtolower($requireUserVerification), ['required', 'preferred', 'discouraged'])) {
} else if (\is_string($requireUserVerification) && \in_array(\strtolower($requireUserVerification), ['required', 'preferred', 'discouraged'])) {
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 222
$requireUserVerification = \strtolower($requireUserVerification);
$requireUserVerification = \strtolower($requireUserVerification);
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 223
} else {
} else {
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 224
$requireUserVerification = 'preferred';
$requireUserVerification = 'preferred';
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 225
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 226
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 227
$args = new \stdClass();
$args = new \stdClass();
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 228
$args->publicKey = new \stdClass();
$args->publicKey = new \stdClass();
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 229
$args->publicKey->timeout = $timeout * 1000; // microseconds
$args->publicKey->timeout = $timeout * 1000; // microseconds
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 230
$args->publicKey->challenge = $this->_createChallenge(); // binary
$args->publicKey->challenge = $this->_createChallenge(); // binary
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 231
$args->publicKey->userVerification = $requireUserVerification;
$args->publicKey->userVerification = $requireUserVerification;
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 232
$args->publicKey->rpId = $this->_rpId;
$args->publicKey->rpId = $this->_rpId;
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 233
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 234
if (\is_array($credentialIds) && \count($credentialIds) > 0) {
if (\is_array($credentialIds) && \count($credentialIds) > 0) {
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 235
$args->publicKey->allowCredentials = array();
$args->publicKey->allowCredentials = array();
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 236
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 237
foreach ($credentialIds as $id) {
foreach ($credentialIds as $id) {
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 238
$tmp = new \stdClass();
$tmp = new \stdClass();
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 239
$tmp->id = $id instanceof ByteBuffer ? $id : new ByteBuffer($id); // binary
$tmp->id = $id instanceof ByteBuffer ? $id : new ByteBuffer($id); // binary
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 240
$tmp->transports = array();
$tmp->transports = array();
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 241
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 242
if ($allowUsb) {
if ($allowUsb) {
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 243
$tmp->transports[] = 'usb';
$tmp->transports[] = 'usb';
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 244
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 245
if ($allowNfc) {
if ($allowNfc) {
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 246
$tmp->transports[] = 'nfc';
$tmp->transports[] = 'nfc';
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 247
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 248
if ($allowBle) {
if ($allowBle) {
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 249
$tmp->transports[] = 'ble';
$tmp->transports[] = 'ble';
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 250
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 251
if ($allowInternal) {
if ($allowInternal) {
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 252
$tmp->transports[] = 'internal';
$tmp->transports[] = 'internal';
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 253
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 254
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 255
$tmp->type = 'public-key';
$tmp->type = 'public-key';
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 256
$args->publicKey->allowCredentials[] = $tmp;
$args->publicKey->allowCredentials[] = $tmp;
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 257
unset ($tmp);
unset ($tmp);
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 258
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 259
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 260
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 261
return $args;
return $args;
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 262
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 263
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 264
/**
/**
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 265
* returns the new signature counter value.
* returns the new signature counter value.
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 266
* returns null if there is no counter
* returns null if there is no counter
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 267
* @return ?int
* @return ?int
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 268
*/
*/
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 269
public function getSignatureCounter() {
public function getSignatureCounter() {
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 270
return \is_int($this->_signatureCounter) ? $this->_signatureCounter : null;
return \is_int($this->_signatureCounter) ? $this->_signatureCounter : null;
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 271
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 272
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 273
/**
/**
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 274
* process a create request and returns data to save for future logins
* process a create request and returns data to save for future logins
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 275
* @param string $clientDataJSON binary from browser
* @param string $clientDataJSON binary from browser
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 276
* @param string $attestationObject binary from browser
* @param string $attestationObject binary from browser
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 277
* @param string|ByteBuffer $challenge binary used challange
* @param string|ByteBuffer $challenge binary used challange
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 278
* @param bool $requireUserVerification true, if the device must verify user (e.g. by biometric data or pin)
* @param bool $requireUserVerification true, if the device must verify user (e.g. by biometric data or pin)
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 279
* @param bool $requireUserPresent false, if the device must NOT check user presence (e.g. by pressing a button)
* @param bool $requireUserPresent false, if the device must NOT check user presence (e.g. by pressing a button)
FreddlePat
over 4 years ago
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 280
* @param bool $failIfRootMismatch false, if there should be no error thrown if root certificate doesn't match
* @param bool $failIfRootMismatch false, if there should be no error thrown if root certificate doesn't match
andryyy
over 5 years ago
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 281
* @return \stdClass
* @return \stdClass
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 282
* @throws WebAuthnException
* @throws WebAuthnException
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 283
*/
*/
FreddlePat
over 4 years ago
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 284
public function processCreate($clientDataJSON, $attestationObject, $challenge, $requireUserVerification=false, $requireUserPresent=true, $failIfRootMismatch=true) {
public function processCreate($clientDataJSON, $attestationObject, $challenge, $requireUserVerification=false, $requireUserPresent=true, $failIfRootMismatch=true) {
andryyy
over 5 years ago
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 285
$clientDataHash = \hash('sha256', $clientDataJSON, true);
$clientDataHash = \hash('sha256', $clientDataJSON, true);
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 286
$clientData = \json_decode($clientDataJSON);
$clientData = \json_decode($clientDataJSON);
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 287
$challenge = $challenge instanceof ByteBuffer ? $challenge : new ByteBuffer($challenge);
$challenge = $challenge instanceof ByteBuffer ? $challenge : new ByteBuffer($challenge);
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 288
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 289
// security: https://www.w3.org/TR/webauthn/#registering-a-new-credential
// security: https://www.w3.org/TR/webauthn/#registering-a-new-credential
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 290
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 291
// 2. Let C, the client data claimed as collected during the credential creation,
// 2. Let C, the client data claimed as collected during the credential creation,
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 292
// be the result of running an implementation-specific JSON parser on JSONtext.
// be the result of running an implementation-specific JSON parser on JSONtext.
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 293
if (!\is_object($clientData)) {
if (!\is_object($clientData)) {
andryyy
over 5 years ago
46643af
[Web] FIDO2: Add Face ID via Apple
- Full commit hash
46643af00c8a8612081b933e027541838245b578- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 294
throw new WebAuthnException('invalid client data', WebAuthnException::INVALID_DATA);
throw new WebAuthnException('invalid client data', WebAuthnException::INVALID_DATA);
andryyy
over 5 years ago
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 295
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 296
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 297
// 3. Verify that the value of C.type is webauthn.create.
// 3. Verify that the value of C.type is webauthn.create.
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 298
if (!\property_exists($clientData, 'type') || $clientData->type !== 'webauthn.create') {
if (!\property_exists($clientData, 'type') || $clientData->type !== 'webauthn.create') {
andryyy
over 5 years ago
46643af
[Web] FIDO2: Add Face ID via Apple
- Full commit hash
46643af00c8a8612081b933e027541838245b578- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 299
throw new WebAuthnException('invalid type', WebAuthnException::INVALID_TYPE);
throw new WebAuthnException('invalid type', WebAuthnException::INVALID_TYPE);
andryyy
over 5 years ago
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 300
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 301
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 302
// 4. Verify that the value of C.challenge matches the challenge that was sent to the authenticator in the create() call.
// 4. Verify that the value of C.challenge matches the challenge that was sent to the authenticator in the create() call.
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 303
if (!\property_exists($clientData, 'challenge') || ByteBuffer::fromBase64Url($clientData->challenge)->getBinaryString() !== $challenge->getBinaryString()) {
if (!\property_exists($clientData, 'challenge') || ByteBuffer::fromBase64Url($clientData->challenge)->getBinaryString() !== $challenge->getBinaryString()) {
andryyy
over 5 years ago
46643af
[Web] FIDO2: Add Face ID via Apple
- Full commit hash
46643af00c8a8612081b933e027541838245b578- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 304
throw new WebAuthnException('invalid challenge', WebAuthnException::INVALID_CHALLENGE);
throw new WebAuthnException('invalid challenge', WebAuthnException::INVALID_CHALLENGE);
andryyy
over 5 years ago
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 305
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 306
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 307
// 5. Verify that the value of C.origin matches the Relying Party's origin.
// 5. Verify that the value of C.origin matches the Relying Party's origin.
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 308
if (!\property_exists($clientData, 'origin') || !$this->_checkOrigin($clientData->origin)) {
if (!\property_exists($clientData, 'origin') || !$this->_checkOrigin($clientData->origin)) {
andryyy
over 5 years ago
46643af
[Web] FIDO2: Add Face ID via Apple
- Full commit hash
46643af00c8a8612081b933e027541838245b578- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 309
throw new WebAuthnException('invalid origin', WebAuthnException::INVALID_ORIGIN);
throw new WebAuthnException('invalid origin', WebAuthnException::INVALID_ORIGIN);
andryyy
over 5 years ago
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 310
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 311
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 312
// Attestation
// Attestation
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 313
$attestationObject = new Attestation\AttestationObject($attestationObject, $this->_formats);
$attestationObject = new Attestation\AttestationObject($attestationObject, $this->_formats);
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 314
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 315
// 9. Verify that the RP ID hash in authData is indeed the SHA-256 hash of the RP ID expected by the RP.
// 9. Verify that the RP ID hash in authData is indeed the SHA-256 hash of the RP ID expected by the RP.
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 316
if (!$attestationObject->validateRpIdHash($this->_rpIdHash)) {
if (!$attestationObject->validateRpIdHash($this->_rpIdHash)) {
andryyy
over 5 years ago
46643af
[Web] FIDO2: Add Face ID via Apple
- Full commit hash
46643af00c8a8612081b933e027541838245b578- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 317
throw new WebAuthnException('invalid rpId hash', WebAuthnException::INVALID_RELYING_PARTY);
throw new WebAuthnException('invalid rpId hash', WebAuthnException::INVALID_RELYING_PARTY);
andryyy
over 5 years ago
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 318
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 319
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 320
// 14. Verify that attStmt is a correct attestation statement, conveying a valid attestation signature
// 14. Verify that attStmt is a correct attestation statement, conveying a valid attestation signature
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 321
if (!$attestationObject->validateAttestation($clientDataHash)) {
if (!$attestationObject->validateAttestation($clientDataHash)) {
andryyy
over 5 years ago
46643af
[Web] FIDO2: Add Face ID via Apple
- Full commit hash
46643af00c8a8612081b933e027541838245b578- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 322
throw new WebAuthnException('invalid certificate signature', WebAuthnException::INVALID_SIGNATURE);
throw new WebAuthnException('invalid certificate signature', WebAuthnException::INVALID_SIGNATURE);
andryyy
over 5 years ago
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 323
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 324
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 325
// 15. If validation is successful, obtain a list of acceptable trust anchors
// 15. If validation is successful, obtain a list of acceptable trust anchors
FreddlePat
over 4 years ago
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 326
$rootValid = is_array($this->_caFiles) ? $attestationObject->validateRootCertificate($this->_caFiles) : null;
$rootValid = is_array($this->_caFiles) ? $attestationObject->validateRootCertificate($this->_caFiles) : null;
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 327
if ($failIfRootMismatch && is_array($this->_caFiles) && !$rootValid) {
if ($failIfRootMismatch && is_array($this->_caFiles) && !$rootValid) {
andryyy
over 5 years ago
46643af
[Web] FIDO2: Add Face ID via Apple
- Full commit hash
46643af00c8a8612081b933e027541838245b578- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 328
throw new WebAuthnException('invalid root certificate', WebAuthnException::CERTIFICATE_NOT_TRUSTED);
throw new WebAuthnException('invalid root certificate', WebAuthnException::CERTIFICATE_NOT_TRUSTED);
andryyy
over 5 years ago
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 329
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 330
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 331
// 10. Verify that the User Present bit of the flags in authData is set.
// 10. Verify that the User Present bit of the flags in authData is set.
FreddlePat
over 4 years ago
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 332
$userPresent = $attestationObject->getAuthenticatorData()->getUserPresent();
$userPresent = $attestationObject->getAuthenticatorData()->getUserPresent();
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 333
if ($requireUserPresent && !$userPresent) {
if ($requireUserPresent && !$userPresent) {
andryyy
over 5 years ago
46643af
[Web] FIDO2: Add Face ID via Apple
- Full commit hash
46643af00c8a8612081b933e027541838245b578- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 334
throw new WebAuthnException('user not present during authentication', WebAuthnException::USER_PRESENT);
throw new WebAuthnException('user not present during authentication', WebAuthnException::USER_PRESENT);
andryyy
over 5 years ago
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 335
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 336
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 337
// 11. If user verification is required for this registration, verify that the User Verified bit of the flags in authData is set.
// 11. If user verification is required for this registration, verify that the User Verified bit of the flags in authData is set.
FreddlePat
over 4 years ago
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 338
$userVerified = $attestationObject->getAuthenticatorData()->getUserVerified();
$userVerified = $attestationObject->getAuthenticatorData()->getUserVerified();
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 339
if ($requireUserVerification && !$userVerified) {
if ($requireUserVerification && !$userVerified) {
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 340
throw new WebAuthnException('user not verified during authentication', WebAuthnException::USER_VERIFICATED);
throw new WebAuthnException('user not verified during authentication', WebAuthnException::USER_VERIFICATED);
andryyy
over 5 years ago
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 341
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 342
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 343
$signCount = $attestationObject->getAuthenticatorData()->getSignCount();
$signCount = $attestationObject->getAuthenticatorData()->getSignCount();
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 344
if ($signCount > 0) {
if ($signCount > 0) {
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 345
$this->_signatureCounter = $signCount;
$this->_signatureCounter = $signCount;
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 346
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 347
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 348
// prepare data to store for future logins
// prepare data to store for future logins
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 349
$data = new \stdClass();
$data = new \stdClass();
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 350
$data->rpId = $this->_rpId;
$data->rpId = $this->_rpId;
FreddlePat
over 4 years ago
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 351
$data->attestationFormat = $attestationObject->getAttestationFormatName();
$data->attestationFormat = $attestationObject->getAttestationFormatName();
andryyy
over 5 years ago
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 352
$data->credentialId = $attestationObject->getAuthenticatorData()->getCredentialId();
$data->credentialId = $attestationObject->getAuthenticatorData()->getCredentialId();
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 353
$data->credentialPublicKey = $attestationObject->getAuthenticatorData()->getPublicKeyPem();
$data->credentialPublicKey = $attestationObject->getAuthenticatorData()->getPublicKeyPem();
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 354
$data->certificateChain = $attestationObject->getCertificateChain();
$data->certificateChain = $attestationObject->getCertificateChain();
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 355
$data->certificate = $attestationObject->getCertificatePem();
$data->certificate = $attestationObject->getCertificatePem();
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 356
$data->certificateIssuer = $attestationObject->getCertificateIssuer();
$data->certificateIssuer = $attestationObject->getCertificateIssuer();
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 357
$data->certificateSubject = $attestationObject->getCertificateSubject();
$data->certificateSubject = $attestationObject->getCertificateSubject();
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 358
$data->signatureCounter = $this->_signatureCounter;
$data->signatureCounter = $this->_signatureCounter;
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 359
$data->AAGUID = $attestationObject->getAuthenticatorData()->getAAGUID();
$data->AAGUID = $attestationObject->getAuthenticatorData()->getAAGUID();
FreddlePat
over 4 years ago
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 360
$data->rootValid = $rootValid;
$data->rootValid = $rootValid;
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 361
$data->userPresent = $userPresent;
$data->userPresent = $userPresent;
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 362
$data->userVerified = $userVerified;
$data->userVerified = $userVerified;
andryyy
over 5 years ago
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 363
return $data;
return $data;
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 364
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 365
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 366
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 367
/**
/**
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 368
* process a get request
* process a get request
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 369
* @param string $clientDataJSON binary from browser
* @param string $clientDataJSON binary from browser
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 370
* @param string $authenticatorData binary from browser
* @param string $authenticatorData binary from browser
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 371
* @param string $signature binary from browser
* @param string $signature binary from browser
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 372
* @param string $credentialPublicKey string PEM-formated public key from used credentialId
* @param string $credentialPublicKey string PEM-formated public key from used credentialId
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 373
* @param string|ByteBuffer $challenge binary from used challange
* @param string|ByteBuffer $challenge binary from used challange
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 374
* @param int $prevSignatureCnt signature count value of the last login
* @param int $prevSignatureCnt signature count value of the last login
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 375
* @param bool $requireUserVerification true, if the device must verify user (e.g. by biometric data or pin)
* @param bool $requireUserVerification true, if the device must verify user (e.g. by biometric data or pin)
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 376
* @param bool $requireUserPresent true, if the device must check user presence (e.g. by pressing a button)
* @param bool $requireUserPresent true, if the device must check user presence (e.g. by pressing a button)
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 377
* @return boolean true if get is successful
* @return boolean true if get is successful
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 378
* @throws WebAuthnException
* @throws WebAuthnException
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 379
*/
*/
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 380
public function processGet($clientDataJSON, $authenticatorData, $signature, $credentialPublicKey, $challenge, $prevSignatureCnt=null, $requireUserVerification=false, $requireUserPresent=true) {
public function processGet($clientDataJSON, $authenticatorData, $signature, $credentialPublicKey, $challenge, $prevSignatureCnt=null, $requireUserVerification=false, $requireUserPresent=true) {
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 381
$authenticatorObj = new Attestation\AuthenticatorData($authenticatorData);
$authenticatorObj = new Attestation\AuthenticatorData($authenticatorData);
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 382
$clientDataHash = \hash('sha256', $clientDataJSON, true);
$clientDataHash = \hash('sha256', $clientDataJSON, true);
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 383
$clientData = \json_decode($clientDataJSON);
$clientData = \json_decode($clientDataJSON);
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 384
$challenge = $challenge instanceof ByteBuffer ? $challenge : new ByteBuffer($challenge);
$challenge = $challenge instanceof ByteBuffer ? $challenge : new ByteBuffer($challenge);
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 385
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 386
// https://www.w3.org/TR/webauthn/#verifying-assertion
// https://www.w3.org/TR/webauthn/#verifying-assertion
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 387
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 388
// 1. If the allowCredentials option was given when this authentication ceremony was initiated,
// 1. If the allowCredentials option was given when this authentication ceremony was initiated,
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 389
// verify that credential.id identifies one of the public key credentials that were listed in allowCredentials.
// verify that credential.id identifies one of the public key credentials that were listed in allowCredentials.
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 390
// -> TO BE VERIFIED BY IMPLEMENTATION
// -> TO BE VERIFIED BY IMPLEMENTATION
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 391
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 392
// 2. If credential.response.userHandle is present, verify that the user identified
// 2. If credential.response.userHandle is present, verify that the user identified
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 393
// by this value is the owner of the public key credential identified by credential.id.
// by this value is the owner of the public key credential identified by credential.id.
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 394
// -> TO BE VERIFIED BY IMPLEMENTATION
// -> TO BE VERIFIED BY IMPLEMENTATION
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 395
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 396
// 3. Using credential’s id attribute (or the corresponding rawId, if base64url encoding is
// 3. Using credential’s id attribute (or the corresponding rawId, if base64url encoding is
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 397
// inappropriate for your use case), look up the corresponding credential public key.
// inappropriate for your use case), look up the corresponding credential public key.
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 398
// -> TO BE LOOKED UP BY IMPLEMENTATION
// -> TO BE LOOKED UP BY IMPLEMENTATION
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 399
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 400
// 5. Let JSONtext be the result of running UTF-8 decode on the value of cData.
// 5. Let JSONtext be the result of running UTF-8 decode on the value of cData.
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 401
if (!\is_object($clientData)) {
if (!\is_object($clientData)) {
andryyy
over 5 years ago
46643af
[Web] FIDO2: Add Face ID via Apple
- Full commit hash
46643af00c8a8612081b933e027541838245b578- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 402
throw new WebAuthnException('invalid client data', WebAuthnException::INVALID_DATA);
throw new WebAuthnException('invalid client data', WebAuthnException::INVALID_DATA);
andryyy
over 5 years ago
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 403
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 404
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 405
// 7. Verify that the value of C.type is the string webauthn.get.
// 7. Verify that the value of C.type is the string webauthn.get.
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 406
if (!\property_exists($clientData, 'type') || $clientData->type !== 'webauthn.get') {
if (!\property_exists($clientData, 'type') || $clientData->type !== 'webauthn.get') {
andryyy
over 5 years ago
46643af
[Web] FIDO2: Add Face ID via Apple
- Full commit hash
46643af00c8a8612081b933e027541838245b578- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 407
throw new WebAuthnException('invalid type', WebAuthnException::INVALID_TYPE);
throw new WebAuthnException('invalid type', WebAuthnException::INVALID_TYPE);
andryyy
over 5 years ago
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 408
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 409
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 410
// 8. Verify that the value of C.challenge matches the challenge that was sent to the
// 8. Verify that the value of C.challenge matches the challenge that was sent to the
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 411
// authenticator in the PublicKeyCredentialRequestOptions passed to the get() call.
// authenticator in the PublicKeyCredentialRequestOptions passed to the get() call.
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 412
if (!\property_exists($clientData, 'challenge') || ByteBuffer::fromBase64Url($clientData->challenge)->getBinaryString() !== $challenge->getBinaryString()) {
if (!\property_exists($clientData, 'challenge') || ByteBuffer::fromBase64Url($clientData->challenge)->getBinaryString() !== $challenge->getBinaryString()) {
andryyy
over 5 years ago
46643af
[Web] FIDO2: Add Face ID via Apple
- Full commit hash
46643af00c8a8612081b933e027541838245b578- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 413
throw new WebAuthnException('invalid challenge', WebAuthnException::INVALID_CHALLENGE);
throw new WebAuthnException('invalid challenge', WebAuthnException::INVALID_CHALLENGE);
andryyy
over 5 years ago
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 414
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 415
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 416
// 9. Verify that the value of C.origin matches the Relying Party's origin.
// 9. Verify that the value of C.origin matches the Relying Party's origin.
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 417
if (!\property_exists($clientData, 'origin') || !$this->_checkOrigin($clientData->origin)) {
if (!\property_exists($clientData, 'origin') || !$this->_checkOrigin($clientData->origin)) {
andryyy
over 5 years ago
46643af
[Web] FIDO2: Add Face ID via Apple
- Full commit hash
46643af00c8a8612081b933e027541838245b578- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 418
throw new WebAuthnException('invalid origin', WebAuthnException::INVALID_ORIGIN);
throw new WebAuthnException('invalid origin', WebAuthnException::INVALID_ORIGIN);
andryyy
over 5 years ago
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 419
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 420
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 421
// 11. Verify that the rpIdHash in authData is the SHA-256 hash of the RP ID expected by the Relying Party.
// 11. Verify that the rpIdHash in authData is the SHA-256 hash of the RP ID expected by the Relying Party.
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 422
if ($authenticatorObj->getRpIdHash() !== $this->_rpIdHash) {
if ($authenticatorObj->getRpIdHash() !== $this->_rpIdHash) {
andryyy
over 5 years ago
46643af
[Web] FIDO2: Add Face ID via Apple
- Full commit hash
46643af00c8a8612081b933e027541838245b578- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 423
throw new WebAuthnException('invalid rpId hash', WebAuthnException::INVALID_RELYING_PARTY);
throw new WebAuthnException('invalid rpId hash', WebAuthnException::INVALID_RELYING_PARTY);
andryyy
over 5 years ago
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 424
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 425
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 426
// 12. Verify that the User Present bit of the flags in authData is set
// 12. Verify that the User Present bit of the flags in authData is set
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 427
if ($requireUserPresent && !$authenticatorObj->getUserPresent()) {
if ($requireUserPresent && !$authenticatorObj->getUserPresent()) {
andryyy
over 5 years ago
46643af
[Web] FIDO2: Add Face ID via Apple
- Full commit hash
46643af00c8a8612081b933e027541838245b578- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 428
throw new WebAuthnException('user not present during authentication', WebAuthnException::USER_PRESENT);
throw new WebAuthnException('user not present during authentication', WebAuthnException::USER_PRESENT);
andryyy
over 5 years ago
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 429
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 430
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 431
// 13. If user verification is required for this assertion, verify that the User Verified bit of the flags in authData is set.
// 13. If user verification is required for this assertion, verify that the User Verified bit of the flags in authData is set.
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 432
if ($requireUserVerification && !$authenticatorObj->getUserVerified()) {
if ($requireUserVerification && !$authenticatorObj->getUserVerified()) {
andryyy
over 5 years ago
46643af
[Web] FIDO2: Add Face ID via Apple
- Full commit hash
46643af00c8a8612081b933e027541838245b578- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 433
throw new WebAuthnException('user not verificated during authentication', WebAuthnException::USER_VERIFICATED);
throw new WebAuthnException('user not verificated during authentication', WebAuthnException::USER_VERIFICATED);
andryyy
over 5 years ago
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 434
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 435
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 436
// 14. Verify the values of the client extension outputs
// 14. Verify the values of the client extension outputs
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 437
// (extensions not implemented)
// (extensions not implemented)
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 438
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 439
// 16. Using the credential public key looked up in step 3, verify that sig is a valid signature
// 16. Using the credential public key looked up in step 3, verify that sig is a valid signature
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 440
// over the binary concatenation of authData and hash.
// over the binary concatenation of authData and hash.
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 441
$dataToVerify = '';
$dataToVerify = '';
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 442
$dataToVerify .= $authenticatorData;
$dataToVerify .= $authenticatorData;
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 443
$dataToVerify .= $clientDataHash;
$dataToVerify .= $clientDataHash;
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 444
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 445
$publicKey = \openssl_pkey_get_public($credentialPublicKey);
$publicKey = \openssl_pkey_get_public($credentialPublicKey);
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 446
if ($publicKey === false) {
if ($publicKey === false) {
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 447
throw new WebAuthnException('public key invalid', WebAuthnException::INVALID_PUBLIC_KEY);
throw new WebAuthnException('public key invalid', WebAuthnException::INVALID_PUBLIC_KEY);
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 448
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 449
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 450
if (\openssl_verify($dataToVerify, $signature, $publicKey, OPENSSL_ALGO_SHA256) !== 1) {
if (\openssl_verify($dataToVerify, $signature, $publicKey, OPENSSL_ALGO_SHA256) !== 1) {
andryyy
over 5 years ago
46643af
[Web] FIDO2: Add Face ID via Apple
- Full commit hash
46643af00c8a8612081b933e027541838245b578- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 451
throw new WebAuthnException('invalid signature', WebAuthnException::INVALID_SIGNATURE);
throw new WebAuthnException('invalid signature', WebAuthnException::INVALID_SIGNATURE);
andryyy
over 5 years ago
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 452
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 453
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 454
// 17. If the signature counter value authData.signCount is nonzero,
// 17. If the signature counter value authData.signCount is nonzero,
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 455
// if less than or equal to the signature counter value stored,
// if less than or equal to the signature counter value stored,
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 456
// is a signal that the authenticator may be cloned
// is a signal that the authenticator may be cloned
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 457
$signatureCounter = $authenticatorObj->getSignCount();
$signatureCounter = $authenticatorObj->getSignCount();
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 458
if ($signatureCounter > 0) {
if ($signatureCounter > 0) {
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 459
$this->_signatureCounter = $signatureCounter;
$this->_signatureCounter = $signatureCounter;
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 460
if ($prevSignatureCnt !== null && $prevSignatureCnt >= $signatureCounter) {
if ($prevSignatureCnt !== null && $prevSignatureCnt >= $signatureCounter) {
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 461
throw new WebAuthnException('signature counter not valid', WebAuthnException::SIGNATURE_COUNTER);
throw new WebAuthnException('signature counter not valid', WebAuthnException::SIGNATURE_COUNTER);
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 462
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 463
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 464
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 465
return true;
return true;
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 466
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 467
FreddlePat
over 4 years ago
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 468
/**
/**
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 469
* Downloads root certificates from FIDO Alliance Metadata Service (MDS) to a specific folder
* Downloads root certificates from FIDO Alliance Metadata Service (MDS) to a specific folder
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 470
* https://fidoalliance.org/metadata/
* https://fidoalliance.org/metadata/
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 471
* @param string $certFolder Folder path to save the certificates in PEM format.
* @param string $certFolder Folder path to save the certificates in PEM format.
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 472
* @param bool $deleteCerts=true
* @param bool $deleteCerts=true
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 473
* @return int number of cetificates
* @return int number of cetificates
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 474
* @throws WebAuthnException
* @throws WebAuthnException
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 475
*/
*/
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 476
public function queryFidoMetaDataService($certFolder, $deleteCerts=true) {
public function queryFidoMetaDataService($certFolder, $deleteCerts=true) {
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 477
$url = 'https://mds.fidoalliance.org/';
$url = 'https://mds.fidoalliance.org/';
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 478
$raw = null;
$raw = null;
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 479
if (\function_exists('curl_init')) {
if (\function_exists('curl_init')) {
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 480
$ch = \curl_init($url);
$ch = \curl_init($url);
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 481
\curl_setopt($ch, CURLOPT_HEADER, false);
\curl_setopt($ch, CURLOPT_HEADER, false);
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 482
\curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
\curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 483
\curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
\curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 484
\curl_setopt($ch, CURLOPT_USERAGENT, 'github.com/lbuchs/WebAuthn - A simple PHP WebAuthn server library');
\curl_setopt($ch, CURLOPT_USERAGENT, 'github.com/lbuchs/WebAuthn - A simple PHP WebAuthn server library');
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 485
$raw = \curl_exec($ch);
$raw = \curl_exec($ch);
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 486
\curl_close($ch);
\curl_close($ch);
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 487
} else {
} else {
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 488
$raw = \file_get_contents($url);
$raw = \file_get_contents($url);
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 489
}
}
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 490
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 491
$certFolder = \rtrim(\realpath($certFolder), '\\/');
$certFolder = \rtrim(\realpath($certFolder), '\\/');
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 492
if (!is_dir($certFolder)) {
if (!is_dir($certFolder)) {
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 493
throw new WebAuthnException('Invalid folder path for query FIDO Alliance Metadata Service');
throw new WebAuthnException('Invalid folder path for query FIDO Alliance Metadata Service');
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 494
}
}
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 495
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 496
if (!\is_string($raw)) {
if (!\is_string($raw)) {
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 497
throw new WebAuthnException('Unable to query FIDO Alliance Metadata Service');
throw new WebAuthnException('Unable to query FIDO Alliance Metadata Service');
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 498
}
}
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 499
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 500
$jwt = \explode('.', $raw);
$jwt = \explode('.', $raw);
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 501
if (\count($jwt) !== 3) {
if (\count($jwt) !== 3) {
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 502
throw new WebAuthnException('Invalid JWT from FIDO Alliance Metadata Service');
throw new WebAuthnException('Invalid JWT from FIDO Alliance Metadata Service');
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 503
}
}
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 504
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 505
if ($deleteCerts) {
if ($deleteCerts) {
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 506
foreach (\scandir($certFolder) as $ca) {
foreach (\scandir($certFolder) as $ca) {
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 507
if (\substr($ca, -4) === '.pem') {
if (\substr($ca, -4) === '.pem') {
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 508
if (\unlink($certFolder . DIRECTORY_SEPARATOR . $ca) === false) {
if (\unlink($certFolder . DIRECTORY_SEPARATOR . $ca) === false) {
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 509
throw new WebAuthnException('Cannot delete certs in folder for FIDO Alliance Metadata Service');
throw new WebAuthnException('Cannot delete certs in folder for FIDO Alliance Metadata Service');
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 510
}
}
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 511
}
}
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 512
}
}
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 513
}
}
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 514
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 515
list($header, $payload, $hash) = $jwt;
list($header, $payload, $hash) = $jwt;
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 516
$payload = Binary\ByteBuffer::fromBase64Url($payload)->getJson();
$payload = Binary\ByteBuffer::fromBase64Url($payload)->getJson();
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 517
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 518
$count = 0;
$count = 0;
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 519
if (\is_object($payload) && \property_exists($payload, 'entries') && \is_array($payload->entries)) {
if (\is_object($payload) && \property_exists($payload, 'entries') && \is_array($payload->entries)) {
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 520
foreach ($payload->entries as $entry) {
foreach ($payload->entries as $entry) {
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 521
if (\is_object($entry) && \property_exists($entry, 'metadataStatement') && \is_object($entry->metadataStatement)) {
if (\is_object($entry) && \property_exists($entry, 'metadataStatement') && \is_object($entry->metadataStatement)) {
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 522
$description = $entry->metadataStatement->description ?? null;
$description = $entry->metadataStatement->description ?? null;
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 523
$attestationRootCertificates = $entry->metadataStatement->attestationRootCertificates ?? null;
$attestationRootCertificates = $entry->metadataStatement->attestationRootCertificates ?? null;
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 524
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 525
if ($description && $attestationRootCertificates) {
if ($description && $attestationRootCertificates) {
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 526
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 527
// create filename
// create filename
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 528
$certFilename = \preg_replace('/[^a-z0-9]/i', '_', $description);
$certFilename = \preg_replace('/[^a-z0-9]/i', '_', $description);
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 529
$certFilename = \trim(\preg_replace('/\_{2,}/i', '_', $certFilename),'_') . '.pem';
$certFilename = \trim(\preg_replace('/\_{2,}/i', '_', $certFilename),'_') . '.pem';
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 530
$certFilename = \strtolower($certFilename);
$certFilename = \strtolower($certFilename);
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 531
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 532
// add certificate
// add certificate
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 533
$certContent = $description . "\n";
$certContent = $description . "\n";
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 534
$certContent .= \str_repeat('-', \mb_strlen($description)) . "\n";
$certContent .= \str_repeat('-', \mb_strlen($description)) . "\n";
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 535
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 536
foreach ($attestationRootCertificates as $attestationRootCertificate) {
foreach ($attestationRootCertificates as $attestationRootCertificate) {
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 537
$count++;
$count++;
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 538
$certContent .= "\n-----BEGIN CERTIFICATE-----\n";
$certContent .= "\n-----BEGIN CERTIFICATE-----\n";
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 539
$certContent .= \chunk_split(\trim($attestationRootCertificate), 64, "\n");
$certContent .= \chunk_split(\trim($attestationRootCertificate), 64, "\n");
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 540
$certContent .= "-----END CERTIFICATE-----\n";
$certContent .= "-----END CERTIFICATE-----\n";
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 541
}
}
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 542
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 543
if (\file_put_contents($certFolder . DIRECTORY_SEPARATOR . $certFilename, $certContent) === false) {
if (\file_put_contents($certFolder . DIRECTORY_SEPARATOR . $certFilename, $certContent) === false) {
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 544
throw new WebAuthnException('unable to save certificate from FIDO Alliance Metadata Service');
throw new WebAuthnException('unable to save certificate from FIDO Alliance Metadata Service');
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 545
}
}
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 546
}
}
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 547
}
}
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 548
}
}
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 549
}
}
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 550
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 551
return $count;
return $count;
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 552
}
}
same change
d1d1340
migrating from u2f-api.js to webauthn
- Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11- Author
- FreddlePat <[email protected]>
- Date
- over 4 years ago
- Selected line
- 553
andryyy
over 5 years ago
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 554
// -----------------------------------------------
// -----------------------------------------------
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 555
// PRIVATE
// PRIVATE
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 556
// -----------------------------------------------
// -----------------------------------------------
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 557
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 558
/**
/**
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 559
* checks if the origin matchs the RP ID
* checks if the origin matchs the RP ID
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 560
* @param string $origin
* @param string $origin
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 561
* @return boolean
* @return boolean
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 562
* @throws WebAuthnException
* @throws WebAuthnException
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 563
*/
*/
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 564
private function _checkOrigin($origin) {
private function _checkOrigin($origin) {
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 565
// https://www.w3.org/TR/webauthn/#rp-id
// https://www.w3.org/TR/webauthn/#rp-id
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 566
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 567
// The origin's scheme must be https
// The origin's scheme must be https
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 568
if ($this->_rpId !== 'localhost' && \parse_url($origin, PHP_URL_SCHEME) !== 'https') {
if ($this->_rpId !== 'localhost' && \parse_url($origin, PHP_URL_SCHEME) !== 'https') {
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 569
return false;
return false;
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 570
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 571
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 572
// extract host from origin
// extract host from origin
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 573
$host = \parse_url($origin, PHP_URL_HOST);
$host = \parse_url($origin, PHP_URL_HOST);
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 574
$host = \trim($host, '.');
$host = \trim($host, '.');
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 575
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 576
// The RP ID must be equal to the origin's effective domain, or a registrable
// The RP ID must be equal to the origin's effective domain, or a registrable
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 577
// domain suffix of the origin's effective domain.
// domain suffix of the origin's effective domain.
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 578
return \preg_match('/' . \preg_quote($this->_rpId) . '$/i', $host) === 1;
return \preg_match('/' . \preg_quote($this->_rpId) . '$/i', $host) === 1;
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 579
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 580
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 581
/**
/**
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 582
* generates a new challange
* generates a new challange
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 583
* @param int $length
* @param int $length
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 584
* @return string
* @return string
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 585
* @throws WebAuthnException
* @throws WebAuthnException
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 586
*/
*/
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 587
private function _createChallenge($length = 32) {
private function _createChallenge($length = 32) {
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 588
if (!$this->_challenge) {
if (!$this->_challenge) {
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 589
$this->_challenge = ByteBuffer::randomBuffer($length);
$this->_challenge = ByteBuffer::randomBuffer($length);
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 590
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 591
return $this->_challenge;
return $this->_challenge;
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 592
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 593
}
}