NobGit
public nobgit read

NobMail

Based on mailcow: dockerized

Languages

Repository composition by tracked source files.

PHP
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
Open commit View diff
1 <?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
Open commit View diff
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;
Open commit View diff
3 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;
Open commit View diff
4 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';
Open commit View diff
5 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';
Open commit View diff
6 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';
Open commit View diff
7 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';
Open commit View diff
8 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';
Open commit View diff
9 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';
Open commit View diff
10 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';
Open commit View diff
11 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';
Open commit View diff
12 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';
Open commit View diff
13 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';
Open commit View diff
14 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';
Open commit View diff
15 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';
Open commit View diff
16 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';
Open commit View diff
17 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
Open commit View diff
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
/**
Open commit View diff
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
Open commit View diff
20 * 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
Open commit View diff
21 * @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
Open commit View diff
22 * @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
 */
Open commit View diff
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 {
Open commit View diff
24 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
Open commit View diff
25 // 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;
Open commit View diff
26 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;
Open commit View diff
27 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;
Open commit View diff
28 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;
Open commit View diff
29 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;
Open commit View diff
30 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;
Open commit View diff
31 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;
Open commit View diff
32 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
Open commit View diff
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
    /**
Open commit View diff
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
Open commit View diff
35 * 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
Open commit View diff
36 * @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
Open commit View diff
37 * @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.
Open commit View diff
38 * @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
Open commit View diff
39 * @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
     */
Open commit View diff
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) {
Open commit View diff
41 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;
Open commit View diff
42 $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;
Open commit View diff
43 $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);
Open commit View diff
44 $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;
Open commit View diff
45 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');
Open commit View diff
46 $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
Open commit View diff
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')) {
Open commit View diff
48 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');;
Open commit View diff
49 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
        }
Open commit View diff
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
Open commit View diff
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()))) {
Open commit View diff
52 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.');
Open commit View diff
53 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
        }
Open commit View diff
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
Open commit View diff
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
Open commit View diff
56 // 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)) {
Open commit View diff
57 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;
Open commit View diff
58 $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
        }
Open commit View diff
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;
Open commit View diff
60 $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
Open commit View diff
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
Open commit View diff
62 // 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);
Open commit View diff
63 $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) {
Open commit View diff
64 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));
Open commit View diff
65 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
        }
Open commit View diff
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
    }
Open commit View diff
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
Open commit View diff
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
    /**
Open commit View diff
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
Open commit View diff
70 * 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
Open commit View diff
71 * @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
Open commit View diff
72 * @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
     */
Open commit View diff
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) {
Open commit View diff
74 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)) {
Open commit View diff
75 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();
Open commit View diff
76 $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
        }
Open commit View diff
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) {
Open commit View diff
78 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');
Open commit View diff
79 $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
        }
Open commit View diff
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), '\\/');
Open commit View diff
81 $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)) {
Open commit View diff
82 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) {
Open commit View diff
83 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)) {
Open commit View diff
84 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);
Open commit View diff
85 $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
                }
Open commit View diff
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
            }
Open commit View diff
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)) {
Open commit View diff
88 } 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);
Open commit View diff
89 $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
        }
Open commit View diff
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
    }
Open commit View diff
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
Open commit View diff
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
    /**
Open commit View diff
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
Open commit View diff
94 * 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
Open commit View diff
95 * @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
     */
Open commit View diff
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() {
Open commit View diff
97 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;
Open commit View diff
98 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
    }
Open commit View diff
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
Open commit View diff
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
    /**
Open commit View diff
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
Open commit View diff
102 * 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
Open commit View diff
103 * 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
Open commit View diff
104 * @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
Open commit View diff
105 * @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
Open commit View diff
106 * @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
Open commit View diff
107 * @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
Open commit View diff
108 * @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
Open commit View diff
109 * @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.
Open commit View diff
110 * 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:
Open commit View diff
111 * 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
Open commit View diff
112 * 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
Open commit View diff
113 * 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'
Open commit View diff
114 * 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),
Open commit View diff
115 * @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),
Open commit View diff
116 * 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
Open commit View diff
117 * 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
Open commit View diff
118 * @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
Open commit View diff
119 * @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
     */
Open commit View diff
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()) {
Open commit View diff
121 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
Open commit View diff
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
Open commit View diff
123 // 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)) {
Open commit View diff
124 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';
Open commit View diff
125 $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'])) {
Open commit View diff
126 } 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);
Open commit View diff
127 $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 {
Open commit View diff
128 } 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';
Open commit View diff
129 $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
        }
Open commit View diff
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
Open commit View diff
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();
Open commit View diff
132 $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();
Open commit View diff
133 $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
Open commit View diff
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
Open commit View diff
135 // 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();
Open commit View diff
136 $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;
Open commit View diff
137 $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;
Open commit View diff
138 $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
Open commit View diff
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();
Open commit View diff
140 $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;
Open commit View diff
141 $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) {
Open commit View diff
142 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;
Open commit View diff
143 $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
        }
Open commit View diff
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)) {
Open commit View diff
145 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';
Open commit View diff
146 $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
        }
Open commit View diff
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
Open commit View diff
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
Open commit View diff
149 // 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();
Open commit View diff
150 $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
Open commit View diff
151 $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;
Open commit View diff
152 $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;
Open commit View diff
153 $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
Open commit View diff
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();
Open commit View diff
155 $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();
Open commit View diff
156 $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';
Open commit View diff
157 $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
Open commit View diff
158 $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;
Open commit View diff
159 $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);
Open commit View diff
160 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
Open commit View diff
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();
Open commit View diff
162 $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';
Open commit View diff
163 $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
Open commit View diff
164 $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;
Open commit View diff
165 $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);
Open commit View diff
166 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
Open commit View diff
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
Open commit View diff
168 // 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,
Open commit View diff
169 // 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.
Open commit View diff
170 // 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';
Open commit View diff
171 $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)) {
Open commit View diff
172 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';
Open commit View diff
173 $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
        }
Open commit View diff
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
Open commit View diff
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;
Open commit View diff
176 $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();
Open commit View diff
177 $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;
Open commit View diff
178 $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
Open commit View diff
179 $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
Open commit View diff
180 $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
Open commit View diff
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
Open commit View diff
182 //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();
Open commit View diff
183 $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
Open commit View diff
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)) {
Open commit View diff
185 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) {
Open commit View diff
186 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();
Open commit View diff
187 $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
Open commit View diff
188 $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';
Open commit View diff
189 $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');
Open commit View diff
190 $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;
Open commit View diff
191 $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);
Open commit View diff
192 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
            }
Open commit View diff
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
        }
Open commit View diff
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
Open commit View diff
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;
Open commit View diff
196 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
    }
Open commit View diff
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
Open commit View diff
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
    /**
Open commit View diff
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
Open commit View diff
200 * 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
Open commit View diff
201 * 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
Open commit View diff
202 * @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
Open commit View diff
203 * @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
Open commit View diff
204 * @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)
Open commit View diff
205 * @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
Open commit View diff
206 * @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.
Open commit View diff
207 * @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
Open commit View diff
208 * @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.
Open commit View diff
209 * 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:
Open commit View diff
210 * 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
Open commit View diff
211 * 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
Open commit View diff
212 * 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'
Open commit View diff
213 * 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
Open commit View diff
214 * @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
     */
Open commit View diff
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) {
Open commit View diff
216 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
Open commit View diff
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
Open commit View diff
218 // 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)) {
Open commit View diff
219 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';
Open commit View diff
220 $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'])) {
Open commit View diff
221 } 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);
Open commit View diff
222 $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 {
Open commit View diff
223 } 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';
Open commit View diff
224 $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
        }
Open commit View diff
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
Open commit View diff
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();
Open commit View diff
227 $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();
Open commit View diff
228 $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
Open commit View diff
229 $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
Open commit View diff
230 $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;
Open commit View diff
231 $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;
Open commit View diff
232 $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
Open commit View diff
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) {
Open commit View diff
234 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();
Open commit View diff
235 $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
Open commit View diff
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) {
Open commit View diff
237 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();
Open commit View diff
238 $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
Open commit View diff
239 $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();
Open commit View diff
240 $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
Open commit View diff
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) {
Open commit View diff
242 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';
Open commit View diff
243 $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
                }
Open commit View diff
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) {
Open commit View diff
245 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';
Open commit View diff
246 $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
                }
Open commit View diff
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) {
Open commit View diff
248 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';
Open commit View diff
249 $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
                }
Open commit View diff
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) {
Open commit View diff
251 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';
Open commit View diff
252 $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
                }
Open commit View diff
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
Open commit View diff
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';
Open commit View diff
255 $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;
Open commit View diff
256 $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);
Open commit View diff
257 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
            }
Open commit View diff
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
        }
Open commit View diff
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
Open commit View diff
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;
Open commit View diff
261 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
    }
Open commit View diff
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
Open commit View diff
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
    /**
Open commit View diff
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.
Open commit View diff
265 * 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
Open commit View diff
266 * 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
Open commit View diff
267 * @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
     */
Open commit View diff
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() {
Open commit View diff
269 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;
Open commit View diff
270 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
    }
Open commit View diff
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
Open commit View diff
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
    /**
Open commit View diff
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
Open commit View diff
274 * 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
Open commit View diff
275 * @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
Open commit View diff
276 * @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
Open commit View diff
277 * @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)
Open commit View diff
278 * @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)
Open commit View diff
279 * @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
Open commit View diff
280 * @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
Open commit View diff
281 * @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
Open commit View diff
282 * @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
     */
Open commit View diff
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) {
Open commit View diff
284 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);
Open commit View diff
285 $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);
Open commit View diff
286 $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);
Open commit View diff
287 $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
Open commit View diff
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
Open commit View diff
289 // 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
Open commit View diff
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,
Open commit View diff
291 // 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.
Open commit View diff
292 // 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)) {
Open commit View diff
293 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);
Open commit View diff
294 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
        }
Open commit View diff
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
Open commit View diff
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.
Open commit View diff
297 // 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') {
Open commit View diff
298 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);
Open commit View diff
299 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
        }
Open commit View diff
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
Open commit View diff
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.
Open commit View diff
302 // 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()) {
Open commit View diff
303 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);
Open commit View diff
304 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
        }
Open commit View diff
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
Open commit View diff
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.
Open commit View diff
307 // 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)) {
Open commit View diff
308 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);
Open commit View diff
309 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
        }
Open commit View diff
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
Open commit View diff
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
Open commit View diff
312 // 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);
Open commit View diff
313 $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
Open commit View diff
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.
Open commit View diff
315 // 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)) {
Open commit View diff
316 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);
Open commit View diff
317 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
        }
Open commit View diff
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
Open commit View diff
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
Open commit View diff
320 // 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)) {
Open commit View diff
321 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);
Open commit View diff
322 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
        }
Open commit View diff
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
Open commit View diff
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
Open commit View diff
325 // 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;
Open commit View diff
326 $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) {
Open commit View diff
327 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);
Open commit View diff
328 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
        }
Open commit View diff
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
Open commit View diff
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.
Open commit View diff
331 // 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();
Open commit View diff
332 $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) {
Open commit View diff
333 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);
Open commit View diff
334 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
        }
Open commit View diff
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
Open commit View diff
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.
Open commit View diff
337 // 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();
Open commit View diff
338 $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) {
Open commit View diff
339 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);
Open commit View diff
340 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
        }
Open commit View diff
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
Open commit View diff
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();
Open commit View diff
343 $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) {
Open commit View diff
344 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;
Open commit View diff
345 $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
        }
Open commit View diff
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
Open commit View diff
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
Open commit View diff
348 // 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();
Open commit View diff
349 $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;
Open commit View diff
350 $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();
Open commit View diff
351 $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();
Open commit View diff
352 $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();
Open commit View diff
353 $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();
Open commit View diff
354 $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();
Open commit View diff
355 $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();
Open commit View diff
356 $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();
Open commit View diff
357 $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;
Open commit View diff
358 $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();
Open commit View diff
359 $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;
Open commit View diff
360 $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;
Open commit View diff
361 $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;
Open commit View diff
362 $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;
Open commit View diff
363 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
    }
Open commit View diff
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
Open commit View diff
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
Open commit View diff
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
    /**
Open commit View diff
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
Open commit View diff
368 * 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
Open commit View diff
369 * @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
Open commit View diff
370 * @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
Open commit View diff
371 * @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
Open commit View diff
372 * @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
Open commit View diff
373 * @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
Open commit View diff
374 * @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)
Open commit View diff
375 * @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)
Open commit View diff
376 * @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
Open commit View diff
377 * @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
Open commit View diff
378 * @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
     */
Open commit View diff
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) {
Open commit View diff
380 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);
Open commit View diff
381 $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);
Open commit View diff
382 $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);
Open commit View diff
383 $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);
Open commit View diff
384 $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
Open commit View diff
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
Open commit View diff
386 // 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
Open commit View diff
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,
Open commit View diff
388 // 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.
Open commit View diff
389 // 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
Open commit View diff
390 // -> 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
Open commit View diff
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
Open commit View diff
392 // 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.
Open commit View diff
393 // 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
Open commit View diff
394 // -> 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
Open commit View diff
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
Open commit View diff
396 // 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.
Open commit View diff
397 // 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
Open commit View diff
398 // -> 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
Open commit View diff
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.
Open commit View diff
400 // 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)) {
Open commit View diff
401 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);
Open commit View diff
402 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
        }
Open commit View diff
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
Open commit View diff
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.
Open commit View diff
405 // 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') {
Open commit View diff
406 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);
Open commit View diff
407 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
        }
Open commit View diff
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
Open commit View diff
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
Open commit View diff
410 // 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.
Open commit View diff
411 // 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()) {
Open commit View diff
412 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);
Open commit View diff
413 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
        }
Open commit View diff
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
Open commit View diff
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.
Open commit View diff
416 // 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)) {
Open commit View diff
417 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);
Open commit View diff
418 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
        }
Open commit View diff
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
Open commit View diff
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.
Open commit View diff
421 // 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) {
Open commit View diff
422 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);
Open commit View diff
423 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
        }
Open commit View diff
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
Open commit View diff
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
Open commit View diff
426 // 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()) {
Open commit View diff
427 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);
Open commit View diff
428 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
        }
Open commit View diff
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
Open commit View diff
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.
Open commit View diff
431 // 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()) {
Open commit View diff
432 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);
Open commit View diff
433 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
        }
Open commit View diff
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
Open commit View diff
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
Open commit View diff
436 // 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)
Open commit View diff
437 // (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
Open commit View diff
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
Open commit View diff
439 // 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.
Open commit View diff
440 // 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 = '';
Open commit View diff
441 $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;
Open commit View diff
442 $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;
Open commit View diff
443 $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
Open commit View diff
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);
Open commit View diff
445 $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) {
Open commit View diff
446 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);
Open commit View diff
447 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
        }
Open commit View diff
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
Open commit View diff
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) {
Open commit View diff
450 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);
Open commit View diff
451 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
        }
Open commit View diff
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
Open commit View diff
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,
Open commit View diff
454 // 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,
Open commit View diff
455 // 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
Open commit View diff
456 // 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();
Open commit View diff
457 $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) {
Open commit View diff
458 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;
Open commit View diff
459 $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) {
Open commit View diff
460 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);
Open commit View diff
461 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
            }
Open commit View diff
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
        }
Open commit View diff
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
Open commit View diff
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;
Open commit View diff
465 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
    }
Open commit View diff
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
Open commit View diff
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
    /**
Open commit View diff
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
Open commit View diff
469 * 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/
Open commit View diff
470 * 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.
Open commit View diff
471 * @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
Open commit View diff
472 * @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
Open commit View diff
473 * @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
Open commit View diff
474 * @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
     */
Open commit View diff
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) {
Open commit View diff
476 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/';
Open commit View diff
477 $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;
Open commit View diff
478 $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')) {
Open commit View diff
479 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);
Open commit View diff
480 $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);
Open commit View diff
481 \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);
Open commit View diff
482 \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);
Open commit View diff
483 \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');
Open commit View diff
484 \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);
Open commit View diff
485 $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);
Open commit View diff
486 \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 {
Open commit View diff
487 } 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);
Open commit View diff
488 $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
        }
Open commit View diff
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
Open commit View diff
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), '\\/');
Open commit View diff
491 $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)) {
Open commit View diff
492 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');
Open commit View diff
493 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
        }
Open commit View diff
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
Open commit View diff
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)) {
Open commit View diff
496 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');
Open commit View diff
497 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
        }
Open commit View diff
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
Open commit View diff
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);
Open commit View diff
500 $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) {
Open commit View diff
501 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');
Open commit View diff
502 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
        }
Open commit View diff
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
Open commit View diff
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) {
Open commit View diff
505 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) {
Open commit View diff
506 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') {
Open commit View diff
507 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) {
Open commit View diff
508 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');
Open commit View diff
509 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
                    }
Open commit View diff
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
                }
Open commit View diff
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
            }
Open commit View diff
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
        }
Open commit View diff
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
Open commit View diff
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;
Open commit View diff
515 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();
Open commit View diff
516 $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
Open commit View diff
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;
Open commit View diff
518 $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)) {
Open commit View diff
519 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) {
Open commit View diff
520 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)) {
Open commit View diff
521 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;
Open commit View diff
522 $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;
Open commit View diff
523 $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
Open commit View diff
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) {
Open commit View diff
525 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
Open commit View diff
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
Open commit View diff
527 // 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);
Open commit View diff
528 $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';
Open commit View diff
529 $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);
Open commit View diff
530 $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
Open commit View diff
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
Open commit View diff
532 // 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";
Open commit View diff
533 $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";
Open commit View diff
534 $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
Open commit View diff
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) {
Open commit View diff
536 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++;
Open commit View diff
537 $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";
Open commit View diff
538 $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");
Open commit View diff
539 $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";
Open commit View diff
540 $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
                        }
Open commit View diff
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
Open commit View diff
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) {
Open commit View diff
543 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');
Open commit View diff
544 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
                        }
Open commit View diff
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
                    }
Open commit View diff
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
                }
Open commit View diff
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
            }
Open commit View diff
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
        }
Open commit View diff
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
Open commit View diff
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;
Open commit View diff
551 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
    }
Open commit View diff
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
Open commit View diff
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
    // -----------------------------------------------
Open commit View diff
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
Open commit View diff
555 // 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
    // -----------------------------------------------
Open commit View diff
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
Open commit View diff
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
    /**
Open commit View diff
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
Open commit View diff
559 * 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
Open commit View diff
560 * @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
Open commit View diff
561 * @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
Open commit View diff
562 * @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
     */
Open commit View diff
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) {
Open commit View diff
564 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
Open commit View diff
565 // 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
Open commit View diff
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
Open commit View diff
567 // 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') {
Open commit View diff
568 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;
Open commit View diff
569 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
        }
Open commit View diff
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
Open commit View diff
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
Open commit View diff
572 // 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);
Open commit View diff
573 $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, '.');
Open commit View diff
574 $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
Open commit View diff
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
Open commit View diff
576 // 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.
Open commit View diff
577 // 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;
Open commit View diff
578 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
    }
Open commit View diff
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
Open commit View diff
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
    /**
Open commit View diff
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
Open commit View diff
582 * 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
Open commit View diff
583 * @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
Open commit View diff
584 * @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
Open commit View diff
585 * @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
     */
Open commit View diff
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) {
Open commit View diff
587 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) {
Open commit View diff
588 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);
Open commit View diff
589 $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
        }
Open commit View diff
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;
Open commit View diff
591 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
    }
Open commit View diff
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
}
Open commit View diff
593 }