Skip to content

Commit

Permalink
Conformance toolset
Browse files Browse the repository at this point in the history
  • Loading branch information
Spomky committed Mar 18, 2019
1 parent 7c395e7 commit 13a3df2
Show file tree
Hide file tree
Showing 29 changed files with 635 additions and 247 deletions.
2 changes: 2 additions & 0 deletions .gitsplit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ splits:
target: "https://${GH_TOKEN}@github.com/web-auth/u2f-lib.git"
- prefix: "src/webauthn"
target: "https://${GH_TOKEN}@github.com/web-auth/webauthn-lib.git"
- prefix: "src/conformance-toolset"
target: "https://${GH_TOKEN}@github.com/web-auth/conformance-toolset.git"
- prefix: "src/symfony"
target: "https://${GH_TOKEN}@github.com/web-auth/webauthn-symfony-bundle.git"
- prefix: "src/symfony-security"
Expand Down
3 changes: 3 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"U2F\\": "src/u2f/src/",
"Webauthn\\": "src/webauthn/src/",
"Webauthn\\Bundle\\": "src/symfony/src/",
"Webauthn\\ConformanceToolset\\": "src/conformance-toolset/src/",
"Webauthn\\SecurityBundle\\": "src/symfony-security/src/"
}
},
Expand All @@ -30,6 +31,7 @@
"Webauthn\\Tests\\Functional\\": "src/webauthn/tests/functional/",
"Webauthn\\Tests\\Unit\\": "src/webauthn/tests/unit/",
"Webauthn\\Bundle\\Tests\\Functional\\": "src/symfony/tests/functional/",
"Webauthn\\ConformanceToolset\\Tests\\Functional\\": "src/conformance-toolset/tests/functional/",
"Webauthn\\SecurityBundle\\Tests\\Functional\\": "src/symfony-security/tests/functional/"
}
},
Expand Down Expand Up @@ -57,6 +59,7 @@
"web-authn/cose-lib": "self.version",
"web-authn/u2f-lib": "self.version",
"web-authn/webauthn-lib": "self.version",
"web-auth/conformance-toolset": "self.version",
"web-authn/webauthn-symfony-bundle": "self.version",
"web-authn/webauthn-symfony-security-bundle": "self.version"
},
Expand Down
39 changes: 39 additions & 0 deletions phpunit-conformance-toolset.xml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit
backupGlobals="false"
backupStaticAttributes="false"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
bootstrap="vendor/autoload.php"
colors="true">
<testsuites>
<testsuite name="Test Suite">
<directory>./src/conformance-toolset/tests/</directory>
</testsuite>
</testsuites>
<php>
<ini name="error_reporting" value="-1" />
<ini name="intl.default_locale" value="en" />
<ini name="intl.error_level" value="0" />
<ini name="memory_limit" value="-1" />
<server name="KERNEL_CLASS" value="Webauthn\ConformanceToolset\Tests\Functional\AppKernel" />
<env name="SYMFONY_DEPRECATIONS_HELPER" value="weak_vendors" />
</php>
<filter>
<whitelist>
<directory suffix=".php">./</directory>
<exclude>
<directory>./vendor</directory>
<directory>./src/*/var/</directory>
<directory>./src/*/tests/</directory>
<directory suffix="Test.php">./src</directory>
</exclude>
</whitelist>
</filter>
<listeners>
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener" />
</listeners>
</phpunit>
1 change: 1 addition & 0 deletions src/conformance-toolset/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
composer.lock
21 changes: 21 additions & 0 deletions src/conformance-toolset/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2018 Spomky-Labs

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
33 changes: 33 additions & 0 deletions src/conformance-toolset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
FIDO2/Webauthn Conformance Toolset
==================================

**FIDO2/Webauthn Conformance Toolset** is a library that provides tools to verify the conformance of the relying party
with the FIDO Specification.


# Installation

Install the library with Composer: `composer require web-auth/conformance-toolset`.

# Contribution

This repository is a sub repository of [the Web Authentication Framework](https://github.com/web-auth/webauthn-framework) project and is **READ ONLY**.

**Please do not submit any Pull Request here.**
You should go to [the main repository](https://github.com/web-auth/webauthn-framework) instead.

# Documentation

The official documentation is available at https://github.com/web-auth/webauthn-framework

# Support

I bring solutions to your problems and answer your questions.

If you really love that project and the work I have done or if you want I prioritize your issues, then you can help me out for a couple of :beers: or more!

[![Become a Patreon](https://c5.patreon.com/external/logo/become_a_patron_button.png)](https://www.patreon.com/FlorentMorselli)

# Licence

This project is release under [MIT licence](LICENSE).
38 changes: 38 additions & 0 deletions src/conformance-toolset/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"name": "web-auth/conformance-toolset",
"type": "library",
"license": "MIT",
"description": "FIDO2/Webauthn Conformance Toolset",
"keywords": ["FIDO", "FIDO2", "U2F", "webauthn"],
"homepage": "https://github.com/web-auth",
"authors": [
{
"name": "Florent Morselli",
"homepage": "https://github.com/Spomky"
},
{
"name": "All contributors",
"homepage": "https://github.com/web-auth/conformance-toolset/contributors"
}
],
"require": {
"symfony/psr-http-message-bridge": "^1.1",
"web-auth/webauthn-symfony-bundle": "^1.1"
},
"autoload": {
"psr-4": {
"Webauthn\\ConformanceToolset\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Webauthn\\ConformanceToolset\\Tests\\Functional\\": "tests/functional/"
}
},
"extra": {
"branch-alias": {
"v1.0": "1.0.x-dev",
"v1.1": "1.1.x-dev"
}
}
}
36 changes: 36 additions & 0 deletions src/conformance-toolset/phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit
backupGlobals="false"
backupStaticAttributes="false"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
bootstrap="vendor/autoload.php"
colors="true">
<testsuites>
<testsuite name="Test Suite">
<directory>./tests/</directory>
</testsuite>
</testsuites>
<php>
<ini name="error_reporting" value="-1" />
<ini name="intl.default_locale" value="en" />
<ini name="intl.error_level" value="0" />
<ini name="memory_limit" value="-1" />
<server name="KERNEL_CLASS" value="Webauthn\ConformanceToolset\Tests\Functional\AppKernel" />
</php>
<filter>
<whitelist>
<directory suffix=".php">./</directory>
<exclude>
<directory>./vendor</directory>
<directory>./tests/</directory>
</exclude>
</whitelist>
</filter>
<listeners>
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener" />
</listeners>
</phpunit>
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@
* of the MIT license. See the LICENSE file for details.
*/

namespace Webauthn\Bundle\Controller;
namespace Webauthn\ConformanceToolset\Controller;

use Assert\Assertion;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Serializer\SerializerInterface;
use Symfony\Component\Validator\Validator\ValidatorInterface;
use Webauthn\Bundle\Dto\ServerPublicKeyCredentialRequestOptionsRequest;
use Webauthn\ConformanceToolset\Dto\ServerPublicKeyCredentialRequestOptionsRequest;
use Webauthn\Bundle\Repository\PublicKeyCredentialUserEntityRepository;
use Webauthn\Bundle\Service\PublicKeyCredentialRequestOptionsFactory;
use Webauthn\PublicKeyCredentialDescriptor;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* of the MIT license. See the LICENSE file for details.
*/

namespace Webauthn\Bundle\Controller;
namespace Webauthn\ConformanceToolset\Controller;

use Assert\Assertion;
use Symfony\Bridge\PsrHttpMessage\HttpMessageFactoryInterface;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* of the MIT license. See the LICENSE file for details.
*/

namespace Webauthn\Bundle\Controller;
namespace Webauthn\ConformanceToolset\Controller;

use Symfony\Bridge\PsrHttpMessage\HttpMessageFactoryInterface;
use Symfony\Component\Serializer\SerializerInterface;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* of the MIT license. See the LICENSE file for details.
*/

namespace Webauthn\Bundle\Controller;
namespace Webauthn\ConformanceToolset\Controller;

use Assert\Assertion;
use Symfony\Component\HttpFoundation\JsonResponse;
Expand All @@ -20,7 +20,7 @@
use Symfony\Component\Serializer\SerializerInterface;
use Symfony\Component\Validator\Validator\ValidatorInterface;
use Webauthn\AuthenticatorSelectionCriteria;
use Webauthn\Bundle\Dto\ServerPublicKeyCredentialCreationOptionsRequest;
use Webauthn\ConformanceToolset\Dto\ServerPublicKeyCredentialCreationOptionsRequest;
use Webauthn\Bundle\Repository\PublicKeyCredentialUserEntityRepository;
use Webauthn\Bundle\Service\PublicKeyCredentialCreationOptionsFactory;
use Webauthn\PublicKeyCredentialDescriptor;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* of the MIT license. See the LICENSE file for details.
*/

namespace Webauthn\Bundle\Controller;
namespace Webauthn\ConformanceToolset\Controller;

use Assert\Assertion;
use Symfony\Bridge\PsrHttpMessage\HttpMessageFactoryInterface;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* of the MIT license. See the LICENSE file for details.
*/

namespace Webauthn\Bundle\Controller;
namespace Webauthn\ConformanceToolset\Controller;

use Symfony\Bridge\PsrHttpMessage\HttpMessageFactoryInterface;
use Symfony\Component\Serializer\SerializerInterface;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* of the MIT license. See the LICENSE file for details.
*/

namespace Webauthn\Bundle\Dto;
namespace Webauthn\ConformanceToolset\Dto;

use Symfony\Component\Validator\Constraints as Assert;
use Webauthn\PublicKeyCredentialCreationOptions;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* of the MIT license. See the LICENSE file for details.
*/

namespace Webauthn\Bundle\Dto;
namespace Webauthn\ConformanceToolset\Dto;

use Symfony\Component\Validator\Constraints as Assert;
use Webauthn\PublicKeyCredentialRequestOptions;
Expand Down
Loading

0 comments on commit 13a3df2

Please sign in to comment.