Skip to content

Commit

Permalink
Merge pull request #19 from ConnectHolland/feature/open-source-bundle
Browse files Browse the repository at this point in the history
Prepare to open source bundle
  • Loading branch information
RonRademaker authored Sep 29, 2020
2 parents 7e5dc60 + e6608ea commit ece1155
Show file tree
Hide file tree
Showing 43 changed files with 170 additions and 150 deletions.
4 changes: 2 additions & 2 deletions .php_cs.dist
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ return PhpCsFixer\Config::create()
],
'header_comment' => [
'header' => <<<EOH
This file is part of the Connect Holland Secure JWT package.
(c) Connect Holland.
This file is part of the Connect Holland Secure JWT package and distributed under the terms of the MIT License.
Copyright (c) 2020 Connect Holland.
EOH
,
]
Expand Down
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2020 Connect Holland

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.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# secure-jwt
Library that makes JWT more secure
# Secure JWT Bundle
Symfony bundle that makes JWT more secure

## Install
Installation is not fluent and error free yet, but it is easy to work around:
Expand Down Expand Up @@ -38,7 +38,7 @@ composer require connectholland/secure-jwt-bundle

Again to finish the installation.

BTW1: Installation and configuration of the scheb twofactor bundle before installation of this bundle will also prevent this error.
BTW1: Installation and configuration of the scheb twofactor bundle before installation of this bundle will also prevent this error.<br/>
BTW2: of course a PR that fixes these issues is welcome :)

## Cookie storage
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"api-platform/core": "^2.5",
"scheb/two-factor-bundle": "^4.16",
"endroid/qr-code-bundle": "^3.4",
"friendsofsymfony/rest-bundle": "3.0.0-beta1"
"friendsofsymfony/rest-bundle": "^3.0"
},
"autoload": {
"psr-4": {
Expand Down
135 changes: 67 additions & 68 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/ConnectHollandSecureJWTBundle.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

/*
* This file is part of the Connect Holland Secure JWT package.
* (c) Connect Holland.
* This file is part of the Connect Holland Secure JWT package and distributed under the terms of the MIT License.
* Copyright (c) 2020 Connect Holland.
*/

namespace ConnectHolland\SecureJWTBundle;
Expand Down
4 changes: 2 additions & 2 deletions src/DTO/GeneratedCodes.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

/*
* This file is part of the Connect Holland Secure JWT package.
* (c) Connect Holland.
* This file is part of the Connect Holland Secure JWT package and distributed under the terms of the MIT License.
* Copyright (c) 2020 Connect Holland.
*/

namespace ConnectHolland\SecureJWTBundle\DTO;
Expand Down
4 changes: 2 additions & 2 deletions src/DependencyInjection/ConnectHollandSecureJWTExtension.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

/*
* This file is part of the Connect Holland Secure JWT package.
* (c) Connect Holland.
* This file is part of the Connect Holland Secure JWT package and distributed under the terms of the MIT License.
* Copyright (c) 2020 Connect Holland.
*/

namespace ConnectHolland\SecureJWTBundle\DependencyInjection;
Expand Down
4 changes: 2 additions & 2 deletions src/Entity/InvalidToken.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

/*
* This file is part of the Connect Holland Secure JWT package.
* (c) Connect Holland.
* This file is part of the Connect Holland Secure JWT package and distributed under the terms of the MIT License.
* Copyright (c) 2020 Connect Holland.
*/

namespace ConnectHolland\SecureJWTBundle\Entity;
Expand Down
4 changes: 2 additions & 2 deletions src/Entity/RecoveryCode.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

/*
* This file is part of the Connect Holland Secure JWT package.
* (c) Connect Holland.
* This file is part of the Connect Holland Secure JWT package and distributed under the terms of the MIT License.
* Copyright (c) 2020 Connect Holland.
*/

namespace ConnectHolland\SecureJWTBundle\Entity;
Expand Down
4 changes: 2 additions & 2 deletions src/Entity/TwoFactorUserInterface.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

/*
* This file is part of the Connect Holland Secure JWT package.
* (c) Connect Holland.
* This file is part of the Connect Holland Secure JWT package and distributed under the terms of the MIT License.
* Copyright (c) 2020 Connect Holland.
*/

namespace ConnectHolland\SecureJWTBundle\Entity;
Expand Down
4 changes: 2 additions & 2 deletions src/Event/SetupTwoFactorAuthenticationEvent.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

/*
* This file is part of the Connect Holland Secure JWT package.
* (c) Connect Holland.
* This file is part of the Connect Holland Secure JWT package and distributed under the terms of the MIT License.
* Copyright (c) 2020 Connect Holland.
*/

namespace ConnectHolland\SecureJWTBundle\Event;
Expand Down
4 changes: 2 additions & 2 deletions src/EventSubscriber/LoginSubscriber.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

/*
* This file is part of the Connect Holland Secure JWT package.
* (c) Connect Holland.
* This file is part of the Connect Holland Secure JWT package and distributed under the terms of the MIT License.
* Copyright (c) 2020 Connect Holland.
*/

namespace ConnectHolland\SecureJWTBundle\EventSubscriber;
Expand Down
4 changes: 2 additions & 2 deletions src/Exception/TwoFactorAuthenticationMissingException.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

/*
* This file is part of the Connect Holland Secure JWT package.
* (c) Connect Holland.
* This file is part of the Connect Holland Secure JWT package and distributed under the terms of the MIT License.
* Copyright (c) 2020 Connect Holland.
*/

namespace ConnectHolland\SecureJWTBundle\Exception;
Expand Down
4 changes: 2 additions & 2 deletions src/Exception/TwoFactorSecretNotSetupException.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

/*
* This file is part of the Connect Holland Secure JWT package.
* (c) Connect Holland.
* This file is part of the Connect Holland Secure JWT package and distributed under the terms of the MIT License.
* Copyright (c) 2020 Connect Holland.
*/

namespace ConnectHolland\SecureJWTBundle\Exception;
Expand Down
4 changes: 2 additions & 2 deletions src/Handler/LogoutHandler.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

/*
* This file is part of the Connect Holland Secure JWT package.
* (c) Connect Holland.
* This file is part of the Connect Holland Secure JWT package and distributed under the terms of the MIT License.
* Copyright (c) 2020 Connect Holland.
*/

namespace ConnectHolland\SecureJWTBundle\Handler;
Expand Down
4 changes: 2 additions & 2 deletions src/Handler/RecoverSecretHandler.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

/*
* This file is part of the Connect Holland Secure JWT package.
* (c) Connect Holland.
* This file is part of the Connect Holland Secure JWT package and distributed under the terms of the MIT License.
* Copyright (c) 2020 Connect Holland.
*/

namespace ConnectHolland\SecureJWTBundle\Handler;
Expand Down
Loading

0 comments on commit ece1155

Please sign in to comment.