public
nobgit
read
NobMail
Based on mailcow: dockerized
Languages
Repository composition by tracked source files.
PHP
49%
JavaScript
35%
HTML
9%
CSS
4%
Shell
2%
Python
1%
Lua
0%
Perl
0%
Ruby
0%
SCSS
0%
Create file
Wiki Documentation
Clone
https://nobgit.com/orgs/nobgit/nobmail.git
ssh://[email protected]:2222/orgs/nobgit/nobmail.git
Trace
data/web/inc/lib/WebAuthn/Attestation/Format/Packed.php
Trace helps you understand code history line by line. See who changed each line, when it changed, and which commit introduced it.
Packed.php
on main
Author
Date
Commit
Line
Code
andryyy
over 5 years ago
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 1
<?php
<?php
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 2
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 3
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
- 4
namespace lbuchs\WebAuthn\Attestation\Format;
namespace lbuchs\WebAuthn\Attestation\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
- 5
use lbuchs\WebAuthn\Attestation\AuthenticatorData;
use lbuchs\WebAuthn\Attestation\AuthenticatorData;
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
- 6
use lbuchs\WebAuthn\WebAuthnException;
use lbuchs\WebAuthn\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
- 7
use lbuchs\WebAuthn\Binary\ByteBuffer;
use lbuchs\WebAuthn\Binary\ByteBuffer;
andryyy
over 5 years ago
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 8
same change
c150ac7
[Web] Feature (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
class Packed extends FormatBase {
class Packed extends FormatBase {
same change
c150ac7
[Web] Feature (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
private $_alg;
private $_alg;
same change
c150ac7
[Web] Feature (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
private $_signature;
private $_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
- 12
private $_x5c;
private $_x5c;
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 13
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
- 14
public function __construct($AttestionObject, AuthenticatorData $authenticatorData) {
public function __construct($AttestionObject, AuthenticatorData $authenticatorData) {
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
- 15
parent::__construct($AttestionObject, $authenticatorData);
parent::__construct($AttestionObject, $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
- 16
same change
c150ac7
[Web] Feature (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
// check packed data
// check packed 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
- 18
$attStmt = $this->_attestationObject['attStmt'];
$attStmt = $this->_attestationObject['attStmt'];
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 19
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 20
if (!\array_key_exists('alg', $attStmt) || $this->_getCoseAlgorithm($attStmt['alg']) === null) {
if (!\array_key_exists('alg', $attStmt) || $this->_getCoseAlgorithm($attStmt['alg']) === 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
- 21
throw new WebAuthnException('unsupported alg: ' . $attStmt['alg'], WebAuthnException::INVALID_DATA);
throw new WebAuthnException('unsupported alg: ' . $attStmt['alg'], WebAuthnException::INVALID_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
- 22
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 23
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 24
if (!\array_key_exists('sig', $attStmt) || !\is_object($attStmt['sig']) || !($attStmt['sig'] instanceof ByteBuffer)) {
if (!\array_key_exists('sig', $attStmt) || !\is_object($attStmt['sig']) || !($attStmt['sig'] instanceof 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
- 25
throw new WebAuthnException('no signature found', WebAuthnException::INVALID_DATA);
throw new WebAuthnException('no signature found', WebAuthnException::INVALID_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
- 26
}
}
same change
c150ac7
[Web] Feature (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
same change
c150ac7
[Web] Feature (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
$this->_alg = $attStmt['alg'];
$this->_alg = $attStmt['alg'];
same change
c150ac7
[Web] Feature (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
$this->_signature = $attStmt['sig']->getBinaryString();
$this->_signature = $attStmt['sig']->getBinaryString();
same change
c150ac7
[Web] Feature (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
same change
c150ac7
[Web] Feature (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
// certificate for validation
// certificate for 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
- 32
if (\array_key_exists('x5c', $attStmt) && \is_array($attStmt['x5c']) && \count($attStmt['x5c']) > 0) {
if (\array_key_exists('x5c', $attStmt) && \is_array($attStmt['x5c']) && \count($attStmt['x5c']) > 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
- 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
// The attestation certificate attestnCert MUST be the first element in the array
// The attestation certificate attestnCert MUST be the first element in the 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
- 35
$attestnCert = array_shift($attStmt['x5c']);
$attestnCert = array_shift($attStmt['x5c']);
same change
c150ac7
[Web] Feature (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
same change
c150ac7
[Web] Feature (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
if (!($attestnCert instanceof ByteBuffer)) {
if (!($attestnCert instanceof 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
- 38
throw new WebAuthnException('invalid x5c certificate', WebAuthnException::INVALID_DATA);
throw new WebAuthnException('invalid x5c certificate', WebAuthnException::INVALID_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
- 39
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 40
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 41
$this->_x5c = $attestnCert->getBinaryString();
$this->_x5c = $attestnCert->getBinaryString();
same change
c150ac7
[Web] Feature (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
same change
c150ac7
[Web] Feature (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
// certificate chain
// certificate chain
same change
c150ac7
[Web] Feature (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
foreach ($attStmt['x5c'] as $chain) {
foreach ($attStmt['x5c'] as $chain) {
same change
c150ac7
[Web] Feature (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
if ($chain instanceof ByteBuffer) {
if ($chain instanceof 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
- 46
$this->_x5c_chain[] = $chain->getBinaryString();
$this->_x5c_chain[] = $chain->getBinaryString();
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 47
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 48
}
}
same change
c150ac7
[Web] Feature (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
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 50
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 51
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 52
same change
c150ac7
[Web] Feature (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
/*
/*
same change
c150ac7
[Web] Feature (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
* returns the key certificate in PEM format
* returns the key certificate in PEM format
same change
c150ac7
[Web] Feature (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
* @return string|null
* @return string|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
- 56
*/
*/
same change
c150ac7
[Web] Feature (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
public function getCertificatePem() {
public function 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
- 58
if (!$this->_x5c) {
if (!$this->_x5c) {
same change
c150ac7
[Web] Feature (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
return null;
return 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
- 60
}
}
same change
c150ac7
[Web] Feature (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
return $this->_createCertificatePem($this->_x5c);
return $this->_createCertificatePem($this->_x5c);
same change
c150ac7
[Web] Feature (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
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 63
same change
c150ac7
[Web] Feature (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
/**
/**
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 65
* @param string $clientDataHash
* @param string $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
- 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
public function validateAttestation($clientDataHash) {
public function validateAttestation($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
- 68
if ($this->_x5c) {
if ($this->_x5c) {
same change
c150ac7
[Web] Feature (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
return $this->_validateOverX5c($clientDataHash);
return $this->_validateOverX5c($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
- 70
} else {
} else {
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 71
return $this->_validateSelfAttestation($clientDataHash);
return $this->_validateSelfAttestation($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
- 72
}
}
same change
c150ac7
[Web] Feature (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
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 74
same change
c150ac7
[Web] Feature (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
/**
/**
same change
c150ac7
[Web] Feature (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
* validates the certificate against root certificates
* validates the certificate against root certificates
same change
c150ac7
[Web] Feature (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
* @param array $rootCas
* @param array $rootCas
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 78
* @return boolean
* @return boolean
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 79
* @throws WebAuthnException
* @throws WebAuthnException
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 80
*/
*/
same change
c150ac7
[Web] Feature (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
public function validateRootCertificate($rootCas) {
public function validateRootCertificate($rootCas) {
same change
c150ac7
[Web] Feature (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 (!$this->_x5c) {
if (!$this->_x5c) {
same change
c150ac7
[Web] Feature (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
return false;
return false;
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 84
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 85
same change
c150ac7
[Web] Feature (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
$chainC = $this->_createX5cChainFile();
$chainC = $this->_createX5cChainFile();
same change
c150ac7
[Web] Feature (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
if ($chainC) {
if ($chainC) {
same change
c150ac7
[Web] Feature (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
$rootCas[] = $chainC;
$rootCas[] = $chainC;
same change
c150ac7
[Web] Feature (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
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 90
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 91
$v = \openssl_x509_checkpurpose($this->getCertificatePem(), -1, $rootCas);
$v = \openssl_x509_checkpurpose($this->getCertificatePem(), -1, $rootCas);
same change
c150ac7
[Web] Feature (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
if ($v === -1) {
if ($v === -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
- 93
throw new WebAuthnException('error on validating root certificate: ' . \openssl_error_string(), WebAuthnException::CERTIFICATE_NOT_TRUSTED);
throw new WebAuthnException('error on validating root certificate: ' . \openssl_error_string(), WebAuthnException::CERTIFICATE_NOT_TRUSTED);
same change
c150ac7
[Web] Feature (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
}
}
same change
c150ac7
[Web] Feature (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 $v;
return $v;
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 96
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 97
same change
c150ac7
[Web] Feature (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
/**
/**
same change
c150ac7
[Web] Feature (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
* validate if x5c is present
* validate if x5c is present
same change
c150ac7
[Web] Feature (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
* @param string $clientDataHash
* @param string $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
- 101
* @return bool
* @return bool
same change
c150ac7
[Web] Feature (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
* @throws WebAuthnException
* @throws WebAuthnException
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 103
*/
*/
same change
c150ac7
[Web] Feature (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
protected function _validateOverX5c($clientDataHash) {
protected function _validateOverX5c($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
- 105
$publicKey = \openssl_pkey_get_public($this->getCertificatePem());
$publicKey = \openssl_pkey_get_public($this->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
- 106
same change
c150ac7
[Web] Feature (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
if ($publicKey === false) {
if ($publicKey === false) {
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 108
throw new WebAuthnException('invalid public key: ' . \openssl_error_string(), WebAuthnException::INVALID_PUBLIC_KEY);
throw new WebAuthnException('invalid public key: ' . \openssl_error_string(), 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
- 109
}
}
same change
c150ac7
[Web] Feature (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
same change
c150ac7
[Web] Feature (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
// Verify that sig is a valid signature over the concatenation of authenticatorData and clientDataHash
// Verify that sig is a valid signature over the concatenation of authenticatorData and 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
- 112
// using the attestation public key in attestnCert with the algorithm specified in alg.
// using the attestation public key in attestnCert with the algorithm specified in alg.
same change
c150ac7
[Web] Feature (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
$dataToVerify = $this->_authenticatorData->getBinary();
$dataToVerify = $this->_authenticatorData->getBinary();
same change
c150ac7
[Web] Feature (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
$dataToVerify .= $clientDataHash;
$dataToVerify .= $clientDataHash;
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 115
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 116
$coseAlgorithm = $this->_getCoseAlgorithm($this->_alg);
$coseAlgorithm = $this->_getCoseAlgorithm($this->_alg);
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 117
same change
c150ac7
[Web] Feature (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
// check certificate
// check certificate
same change
c150ac7
[Web] Feature (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 \openssl_verify($dataToVerify, $this->_signature, $publicKey, $coseAlgorithm->openssl) === 1;
return \openssl_verify($dataToVerify, $this->_signature, $publicKey, $coseAlgorithm->openssl) === 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
- 120
}
}
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 121
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 122
/**
/**
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 123
* validate if self attestation is in use
* validate if self attestation is in use
same change
c150ac7
[Web] Feature (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
* @param string $clientDataHash
* @param string $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
- 125
* @return bool
* @return bool
same change
c150ac7
[Web] Feature (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
*/
*/
same change
c150ac7
[Web] Feature (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
protected function _validateSelfAttestation($clientDataHash) {
protected function _validateSelfAttestation($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
- 128
// Verify that sig is a valid signature over the concatenation of authenticatorData and clientDataHash
// Verify that sig is a valid signature over the concatenation of authenticatorData and 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
- 129
// using the credential public key with alg.
// using the credential public key with alg.
same change
c150ac7
[Web] Feature (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
$dataToVerify = $this->_authenticatorData->getBinary();
$dataToVerify = $this->_authenticatorData->getBinary();
same change
c150ac7
[Web] Feature (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
$dataToVerify .= $clientDataHash;
$dataToVerify .= $clientDataHash;
same change
c150ac7
[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators
- Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 132
same change
c150ac7
[Web] Feature (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
$publicKey = $this->_authenticatorData->getPublicKeyPem();
$publicKey = $this->_authenticatorData->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
- 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
// check certificate
// check certificate
same change
c150ac7
[Web] Feature (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
return \openssl_verify($dataToVerify, $this->_signature, $publicKey, OPENSSL_ALGO_SHA256) === 1;
return \openssl_verify($dataToVerify, $this->_signature, $publicKey, OPENSSL_ALGO_SHA256) === 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
- 137
}
}
same change
c150ac7
[Web] Feature (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
}
}
same change
c150ac7
[Web] Feature (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