diff --git a/README.en.md b/README.en.md index 2064dae..8f037d1 100644 --- a/README.en.md +++ b/README.en.md @@ -76,3 +76,14 @@ This software is distributed under the GNU GENERAL PUBLIC LICENSE version 3. For full copyright and licensing information, please see the [LICENSE](LICENSE.md) file distributed with this source code. ## Further licences and terms of use + +### ArrayBuffer to Base64 converting JavaScript [MIT] +(https://gist.github.com/jonleighton/958841 - status: 2022-11-04) + +``` +MIT LICENSE +Copyright 2011 Jon Leighton +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. +``` diff --git a/README.md b/README.md index 48fa949..889d72f 100644 --- a/README.md +++ b/README.md @@ -76,3 +76,14 @@ Diese Software wird unter der GNU GENERAL PUBLIC LICENSE Version 3 vertrieben. Die vollständigen Copyright- und Lizenzinformationen entnehmen Sie bitte der [LICENSE](LICENSE.md)-Datei, die mit diesem Quellcode verteilt wurde. ## weitere Lizenzen und Nutzungsbedingungen + +### ArrayBuffer to Base64 converting JavaScript [MIT] +(https://gist.github.com/jonleighton/958841 - Stand: 04.11.2022) + +``` +MIT LICENSE +Copyright 2011 Jon Leighton +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. +``` diff --git a/src/Application/Controller/Admin/d3user_webauthn.php b/src/Application/Controller/Admin/d3user_webauthn.php index b305bbc..349846a 100755 --- a/src/Application/Controller/Admin/d3user_webauthn.php +++ b/src/Application/Controller/Admin/d3user_webauthn.php @@ -1,16 +1,14 @@ - * @link http://www.oxidmodule.com + * @author D3 Data Development - Daniel Seifert + * @link https://www.oxidmodule.com */ declare(strict_types=1); diff --git a/src/Application/Controller/Admin/d3webauthnadminlogin.php b/src/Application/Controller/Admin/d3webauthnadminlogin.php index 49c8bc6..0aba6f8 100755 --- a/src/Application/Controller/Admin/d3webauthnadminlogin.php +++ b/src/Application/Controller/Admin/d3webauthnadminlogin.php @@ -1,16 +1,14 @@ - * @link http://www.oxidmodule.com + * @author D3 Data Development - Daniel Seifert + * @link https://www.oxidmodule.com */ declare(strict_types=1); diff --git a/src/Application/Controller/Traits/accountTrait.php b/src/Application/Controller/Traits/accountTrait.php index 9365376..979d12e 100644 --- a/src/Application/Controller/Traits/accountTrait.php +++ b/src/Application/Controller/Traits/accountTrait.php @@ -1,16 +1,14 @@ - * @link http://www.oxidmodule.com + * @author D3 Data Development - Daniel Seifert + * @link https://www.oxidmodule.com */ declare(strict_types=1); diff --git a/src/Application/Controller/Traits/checkoutGetUserTrait.php b/src/Application/Controller/Traits/checkoutGetUserTrait.php index 7f6e78d..51f1fa0 100755 --- a/src/Application/Controller/Traits/checkoutGetUserTrait.php +++ b/src/Application/Controller/Traits/checkoutGetUserTrait.php @@ -1,16 +1,14 @@ - * @link http://www.oxidmodule.com + * @author D3 Data Development - Daniel Seifert + * @link https://www.oxidmodule.com */ declare(strict_types=1); diff --git a/src/Application/Controller/d3_account_webauthn.php b/src/Application/Controller/d3_account_webauthn.php index b9cd497..d151f11 100755 --- a/src/Application/Controller/d3_account_webauthn.php +++ b/src/Application/Controller/d3_account_webauthn.php @@ -1,16 +1,14 @@ - * @link http://www.oxidmodule.com + * @author D3 Data Development - Daniel Seifert + * @link https://www.oxidmodule.com */ declare(strict_types=1); diff --git a/src/Application/Controller/d3webauthnlogin.php b/src/Application/Controller/d3webauthnlogin.php index 363b6fc..8c4e397 100755 --- a/src/Application/Controller/d3webauthnlogin.php +++ b/src/Application/Controller/d3webauthnlogin.php @@ -1,16 +1,14 @@ - * @link http://www.oxidmodule.com + * @author D3 Data Development - Daniel Seifert + * @link https://www.oxidmodule.com */ declare(strict_types=1); diff --git a/src/Application/Model/Credential/PublicKeyCredential.php b/src/Application/Model/Credential/PublicKeyCredential.php index cbcfbe8..e97a649 100755 --- a/src/Application/Model/Credential/PublicKeyCredential.php +++ b/src/Application/Model/Credential/PublicKeyCredential.php @@ -1,18 +1,14 @@ - * @link http://www.oxidmodule.com + * @author D3 Data Development - Daniel Seifert + * @link https://www.oxidmodule.com */ declare(strict_types=1); diff --git a/src/Application/Model/Credential/PublicKeyCredentialList.php b/src/Application/Model/Credential/PublicKeyCredentialList.php index 1e3c62a..60af845 100755 --- a/src/Application/Model/Credential/PublicKeyCredentialList.php +++ b/src/Application/Model/Credential/PublicKeyCredentialList.php @@ -1,18 +1,14 @@ - * @link http://www.oxidmodule.com + * @author D3 Data Development - Daniel Seifert + * @link https://www.oxidmodule.com */ declare(strict_types=1); diff --git a/src/Application/Model/Exceptions/WebauthnCreateException.php b/src/Application/Model/Exceptions/WebauthnCreateException.php index fd1556a..8908cd9 100644 --- a/src/Application/Model/Exceptions/WebauthnCreateException.php +++ b/src/Application/Model/Exceptions/WebauthnCreateException.php @@ -1,16 +1,14 @@ - * @link http://www.oxidmodule.com + * @author D3 Data Development - Daniel Seifert + * @link https://www.oxidmodule.com */ declare(strict_types=1); diff --git a/src/Application/Model/Exceptions/WebauthnException.php b/src/Application/Model/Exceptions/WebauthnException.php index 39fe399..cca37f0 100644 --- a/src/Application/Model/Exceptions/WebauthnException.php +++ b/src/Application/Model/Exceptions/WebauthnException.php @@ -1,16 +1,14 @@ - * @link http://www.oxidmodule.com + * @author D3 Data Development - Daniel Seifert + * @link https://www.oxidmodule.com */ declare(strict_types=1); diff --git a/src/Application/Model/Exceptions/WebauthnGetException.php b/src/Application/Model/Exceptions/WebauthnGetException.php index 38e87a8..38f0ac6 100644 --- a/src/Application/Model/Exceptions/WebauthnGetException.php +++ b/src/Application/Model/Exceptions/WebauthnGetException.php @@ -1,16 +1,14 @@ - * @link http://www.oxidmodule.com + * @author D3 Data Development - Daniel Seifert + * @link https://www.oxidmodule.com */ declare(strict_types=1); diff --git a/src/Application/Model/RelyingPartyEntity.php b/src/Application/Model/RelyingPartyEntity.php index c81f967..a94c997 100755 --- a/src/Application/Model/RelyingPartyEntity.php +++ b/src/Application/Model/RelyingPartyEntity.php @@ -1,18 +1,14 @@ - * @link http://www.oxidmodule.com + * @author D3 Data Development - Daniel Seifert + * @link https://www.oxidmodule.com */ declare(strict_types=1); diff --git a/src/Application/Model/UserEntity.php b/src/Application/Model/UserEntity.php index b631437..8dd4041 100755 --- a/src/Application/Model/UserEntity.php +++ b/src/Application/Model/UserEntity.php @@ -1,18 +1,14 @@ - * @link http://www.oxidmodule.com + * @author D3 Data Development - Daniel Seifert + * @link https://www.oxidmodule.com */ declare(strict_types=1); diff --git a/src/Application/Model/Webauthn.php b/src/Application/Model/Webauthn.php index 9fa3b61..a26f073 100644 --- a/src/Application/Model/Webauthn.php +++ b/src/Application/Model/Webauthn.php @@ -1,18 +1,14 @@ - * @link http://www.oxidmodule.com + * @author D3 Data Development - Daniel Seifert + * @link https://www.oxidmodule.com */ declare(strict_types=1); diff --git a/src/Application/Model/WebauthnConf.php b/src/Application/Model/WebauthnConf.php index 0be1731..379178e 100755 --- a/src/Application/Model/WebauthnConf.php +++ b/src/Application/Model/WebauthnConf.php @@ -1,16 +1,14 @@ - * @link http://www.oxidmodule.com + * @author D3 Data Development - Daniel Seifert + * @link https://www.oxidmodule.com */ declare(strict_types=1); diff --git a/src/Application/Model/WebauthnErrors.php b/src/Application/Model/WebauthnErrors.php index 8641304..63a8df8 100644 --- a/src/Application/Model/WebauthnErrors.php +++ b/src/Application/Model/WebauthnErrors.php @@ -1,16 +1,14 @@ - * @link http://www.oxidmodule.com + * @author D3 Data Development - Daniel Seifert + * @link https://www.oxidmodule.com */ declare(strict_types=1); diff --git a/src/Application/translations/de/d3webauthn_lang.php b/src/Application/translations/de/d3webauthn_lang.php index 36bcbbb..b309493 100755 --- a/src/Application/translations/de/d3webauthn_lang.php +++ b/src/Application/translations/de/d3webauthn_lang.php @@ -1,5 +1,16 @@ + * @link https://www.oxidmodule.com + */ + $sLangName = 'Deutsch'; // ------------------------------- diff --git a/src/Application/views/admin/de/d3webauthn_lang.php b/src/Application/views/admin/de/d3webauthn_lang.php index 074ce75..85874b0 100755 --- a/src/Application/views/admin/de/d3webauthn_lang.php +++ b/src/Application/views/admin/de/d3webauthn_lang.php @@ -1,18 +1,14 @@ - * @link http://www.oxidmodule.com + * @author D3 Data Development - Daniel Seifert + * @link https://www.oxidmodule.com */ use D3\Webauthn\Application\Model\WebauthnConf; diff --git a/src/Application/views/admin/en/d3webauthn_lang.php b/src/Application/views/admin/en/d3webauthn_lang.php index ad9ed62..3f8cf43 100755 --- a/src/Application/views/admin/en/d3webauthn_lang.php +++ b/src/Application/views/admin/en/d3webauthn_lang.php @@ -1,18 +1,14 @@ - * @link http://www.oxidmodule.com + * @author D3 Data Development - Daniel Seifert + * @link https://www.oxidmodule.com */ use D3\Webauthn\Application\Model\WebauthnConf; diff --git a/src/IntelliSenseHelper.php b/src/IntelliSenseHelper.php index 8e3cfb8..4d567b3 100755 --- a/src/IntelliSenseHelper.php +++ b/src/IntelliSenseHelper.php @@ -1,18 +1,14 @@ - * @link http://www.oxidmodule.com + * @author D3 Data Development - Daniel Seifert + * @link https://www.oxidmodule.com */ namespace D3\Webauthn\Modules\Application\Component diff --git a/src/Modules/Application/Component/d3_webauthn_UserComponent.php b/src/Modules/Application/Component/d3_webauthn_UserComponent.php index 4d11c06..1a60af4 100755 --- a/src/Modules/Application/Component/d3_webauthn_UserComponent.php +++ b/src/Modules/Application/Component/d3_webauthn_UserComponent.php @@ -1,16 +1,14 @@ - * @link http://www.oxidmodule.com + * @author D3 Data Development - Daniel Seifert + * @link https://www.oxidmodule.com */ declare(strict_types=1); diff --git a/src/Modules/Application/Controller/Admin/d3_LoginController_Webauthn.php b/src/Modules/Application/Controller/Admin/d3_LoginController_Webauthn.php index 05635f2..339df48 100755 --- a/src/Modules/Application/Controller/Admin/d3_LoginController_Webauthn.php +++ b/src/Modules/Application/Controller/Admin/d3_LoginController_Webauthn.php @@ -1,16 +1,14 @@ - * @link http://www.oxidmodule.com + * @author D3 Data Development - Daniel Seifert + * @link https://www.oxidmodule.com */ declare(strict_types=1); diff --git a/src/Modules/Application/Controller/d3_AccountController_Webauthn.php b/src/Modules/Application/Controller/d3_AccountController_Webauthn.php index 3c90aaa..698a186 100644 --- a/src/Modules/Application/Controller/d3_AccountController_Webauthn.php +++ b/src/Modules/Application/Controller/d3_AccountController_Webauthn.php @@ -1,16 +1,14 @@ - * @link http://www.oxidmodule.com + * @author D3 Data Development - Daniel Seifert + * @link https://www.oxidmodule.com */ declare(strict_types=1); diff --git a/src/Modules/Application/Controller/d3_AccountDownloadsController_Webauthn.php b/src/Modules/Application/Controller/d3_AccountDownloadsController_Webauthn.php index b4b7369..434336e 100644 --- a/src/Modules/Application/Controller/d3_AccountDownloadsController_Webauthn.php +++ b/src/Modules/Application/Controller/d3_AccountDownloadsController_Webauthn.php @@ -1,16 +1,14 @@ - * @link http://www.oxidmodule.com + * @author D3 Data Development - Daniel Seifert + * @link https://www.oxidmodule.com */ declare(strict_types=1); diff --git a/src/Modules/Application/Controller/d3_AccountNewsletterController_Webauthn.php b/src/Modules/Application/Controller/d3_AccountNewsletterController_Webauthn.php index 6d1ce80..da9f8e0 100644 --- a/src/Modules/Application/Controller/d3_AccountNewsletterController_Webauthn.php +++ b/src/Modules/Application/Controller/d3_AccountNewsletterController_Webauthn.php @@ -1,16 +1,14 @@ - * @link http://www.oxidmodule.com + * @author D3 Data Development - Daniel Seifert + * @link https://www.oxidmodule.com */ declare(strict_types=1); diff --git a/src/Modules/Application/Controller/d3_AccountNoticeListController_Webauthn.php b/src/Modules/Application/Controller/d3_AccountNoticeListController_Webauthn.php index cf36a70..a2a884c 100644 --- a/src/Modules/Application/Controller/d3_AccountNoticeListController_Webauthn.php +++ b/src/Modules/Application/Controller/d3_AccountNoticeListController_Webauthn.php @@ -1,16 +1,14 @@ - * @link http://www.oxidmodule.com + * @author D3 Data Development - Daniel Seifert + * @link https://www.oxidmodule.com */ declare(strict_types=1); diff --git a/src/Modules/Application/Controller/d3_AccountOrderController_Webauthn.php b/src/Modules/Application/Controller/d3_AccountOrderController_Webauthn.php index ef91539..bdddb14 100644 --- a/src/Modules/Application/Controller/d3_AccountOrderController_Webauthn.php +++ b/src/Modules/Application/Controller/d3_AccountOrderController_Webauthn.php @@ -1,16 +1,14 @@ - * @link http://www.oxidmodule.com + * @author D3 Data Development - Daniel Seifert + * @link https://www.oxidmodule.com */ declare(strict_types=1); diff --git a/src/Modules/Application/Controller/d3_AccountPasswordController_Webauthn.php b/src/Modules/Application/Controller/d3_AccountPasswordController_Webauthn.php index bdbb649..dc8b696 100644 --- a/src/Modules/Application/Controller/d3_AccountPasswordController_Webauthn.php +++ b/src/Modules/Application/Controller/d3_AccountPasswordController_Webauthn.php @@ -1,16 +1,14 @@ - * @link http://www.oxidmodule.com + * @author D3 Data Development - Daniel Seifert + * @link https://www.oxidmodule.com */ declare(strict_types=1); diff --git a/src/Modules/Application/Controller/d3_AccountRecommlistController_Webauthn.php b/src/Modules/Application/Controller/d3_AccountRecommlistController_Webauthn.php index 3b950d0..7d8dc11 100644 --- a/src/Modules/Application/Controller/d3_AccountRecommlistController_Webauthn.php +++ b/src/Modules/Application/Controller/d3_AccountRecommlistController_Webauthn.php @@ -1,16 +1,14 @@ - * @link http://www.oxidmodule.com + * @author D3 Data Development - Daniel Seifert + * @link https://www.oxidmodule.com */ declare(strict_types=1); diff --git a/src/Modules/Application/Controller/d3_AccountReviewController_Webauthn.php b/src/Modules/Application/Controller/d3_AccountReviewController_Webauthn.php index d38f322..ecd0978 100644 --- a/src/Modules/Application/Controller/d3_AccountReviewController_Webauthn.php +++ b/src/Modules/Application/Controller/d3_AccountReviewController_Webauthn.php @@ -1,16 +1,14 @@ - * @link http://www.oxidmodule.com + * @author D3 Data Development - Daniel Seifert + * @link https://www.oxidmodule.com */ declare(strict_types=1); diff --git a/src/Modules/Application/Controller/d3_AccountUserController_Webauthn.php b/src/Modules/Application/Controller/d3_AccountUserController_Webauthn.php index a60e1f8..dfb9f69 100644 --- a/src/Modules/Application/Controller/d3_AccountUserController_Webauthn.php +++ b/src/Modules/Application/Controller/d3_AccountUserController_Webauthn.php @@ -1,16 +1,14 @@ - * @link http://www.oxidmodule.com + * @author D3 Data Development - Daniel Seifert + * @link https://www.oxidmodule.com */ declare(strict_types=1); diff --git a/src/Modules/Application/Controller/d3_AccountWishlistController_Webauthn.php b/src/Modules/Application/Controller/d3_AccountWishlistController_Webauthn.php index 6965a02..6ff2862 100644 --- a/src/Modules/Application/Controller/d3_AccountWishlistController_Webauthn.php +++ b/src/Modules/Application/Controller/d3_AccountWishlistController_Webauthn.php @@ -1,16 +1,14 @@ - * @link http://www.oxidmodule.com + * @author D3 Data Development - Daniel Seifert + * @link https://www.oxidmodule.com */ declare(strict_types=1); diff --git a/src/Modules/Application/Controller/d3_webauthn_OrderController.php b/src/Modules/Application/Controller/d3_webauthn_OrderController.php index 7290ec5..0d95f08 100755 --- a/src/Modules/Application/Controller/d3_webauthn_OrderController.php +++ b/src/Modules/Application/Controller/d3_webauthn_OrderController.php @@ -1,16 +1,14 @@ - * @link http://www.oxidmodule.com + * @author D3 Data Development - Daniel Seifert + * @link https://www.oxidmodule.com */ declare(strict_types=1); diff --git a/src/Modules/Application/Controller/d3_webauthn_PaymentController.php b/src/Modules/Application/Controller/d3_webauthn_PaymentController.php index de96b43..7bf1e15 100755 --- a/src/Modules/Application/Controller/d3_webauthn_PaymentController.php +++ b/src/Modules/Application/Controller/d3_webauthn_PaymentController.php @@ -1,16 +1,14 @@ - * @link http://www.oxidmodule.com + * @author D3 Data Development - Daniel Seifert + * @link https://www.oxidmodule.com */ declare(strict_types=1); diff --git a/src/Modules/Application/Controller/d3_webauthn_UserController.php b/src/Modules/Application/Controller/d3_webauthn_UserController.php index ad435f0..4448b1f 100755 --- a/src/Modules/Application/Controller/d3_webauthn_UserController.php +++ b/src/Modules/Application/Controller/d3_webauthn_UserController.php @@ -1,16 +1,14 @@ - * @link http://www.oxidmodule.com + * @author D3 Data Development - Daniel Seifert + * @link https://www.oxidmodule.com */ declare(strict_types=1); diff --git a/src/Modules/Application/Model/d3_User_Webauthn.php b/src/Modules/Application/Model/d3_User_Webauthn.php index 36e419e..39735d4 100755 --- a/src/Modules/Application/Model/d3_User_Webauthn.php +++ b/src/Modules/Application/Model/d3_User_Webauthn.php @@ -1,16 +1,14 @@ - * @link http://www.oxidmodule.com + * @author D3 Data Development - Daniel Seifert + * @link https://www.oxidmodule.com */ declare(strict_types=1); diff --git a/src/Setup/Events.php b/src/Setup/Events.php index 6385f95..ef1d6b3 100755 --- a/src/Setup/Events.php +++ b/src/Setup/Events.php @@ -1,18 +1,14 @@ - * @link http://www.oxidmodule.com + * @author D3 Data Development - Daniel Seifert + * @link https://www.oxidmodule.com */ declare(strict_types=1); diff --git a/src/metadata.php b/src/metadata.php index bfb9bf6..fed68d4 100755 --- a/src/metadata.php +++ b/src/metadata.php @@ -1,18 +1,14 @@ - * @link http://www.oxidmodule.com + * @author D3 Data Development - Daniel Seifert + * @link https://www.oxidmodule.com */ declare(strict_types=1); diff --git a/src/out/src/js/webauthn.js b/src/out/src/js/webauthn.js index d5b0793..51917a4 100644 --- a/src/out/src/js/webauthn.js +++ b/src/out/src/js/webauthn.js @@ -1,6 +1,17 @@ /* jshint esversion: 9 */ /* jslint bitwise: true */ +/** + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + * + * https://www.d3data.de + * + * @copyright (C) D3 Data Development (Inh. Thomas Dartsch) + * @author D3 Data Development - Daniel Seifert + * @link https://www.oxidmodule.com + */ + if (!window.PublicKeyCredential) { document.getElementById('webauthn').error.value = 'd3NoPublicKeyCredentialSupportedError: aborting'; document.getElementById('webauthn').submit();