[FEATURE] Add api for rsaauth encryption 38/40938/20
authorNicole Cordes <typo3@cordes.co>
Sun, 12 Jul 2015 21:53:28 +0000 (23:53 +0200)
committerGeorg Ringer <georg.ringer@gmail.com>
Tue, 14 Jul 2015 19:55:23 +0000 (21:55 +0200)
commit435f778ce583e3b3096538ef0fdcf01768b21e63
treef906792ddc446fd3a345e93a885c7769b08114eb
parent56fd448d350acc59a2cc268dbdb9905ffcd2033e
[FEATURE] Add api for rsaauth encryption

This patch introduces new API which eases the use of RSA encryption
across the core and for third party extensions.

For backend encryption a new RequireJS module is included which finds
fields to encrypt automatically by their data attribute.

For frontend encryption the JavaScript was rewritten to work the same
way the RequireJS module works but with plain (vanilla) JavaScript.

Releases: master
Resolves: #67932
Resolves: #34568
Change-Id: Id35dd65d1019a8c16858f03989ff48e3434698e4
Reviewed-on: http://review.typo3.org/40938
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
Reviewed-by: Nicole Cordes <typo3@cordes.co>
Tested-by: Nicole Cordes <typo3@cordes.co>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
36 files changed:
typo3/sysext/backend/Classes/Controller/BackendController.php
typo3/sysext/backend/Classes/Http/AjaxRequestHandler.php
typo3/sysext/backend/Resources/Private/Templates/UserPassLoginForm.html
typo3/sysext/backend/Resources/Public/JavaScript/LoginRefresh.js
typo3/sysext/backend/Resources/Public/JavaScript/UserPassLogin.js
typo3/sysext/core/Documentation/Changelog/master/Deprecation-67932-DeprecatedOldRsaauthApi.rst [new file with mode: 0644]
typo3/sysext/core/Documentation/Changelog/master/Feature-67932-RsaauthApiRewrite.rst [new file with mode: 0644]
typo3/sysext/felogin/template.html
typo3/sysext/rsaauth/Classes/Backend/AjaxLoginHandler.php
typo3/sysext/rsaauth/Classes/Hook/BackendHookForAjaxLogin.php [deleted file]
typo3/sysext/rsaauth/Classes/Hook/FrontendLoginHook.php
typo3/sysext/rsaauth/Classes/Hook/UserSetupHook.php
typo3/sysext/rsaauth/Classes/RsaAuthService.php
typo3/sysext/rsaauth/Classes/RsaEncryptionDecoder.php [new file with mode: 0644]
typo3/sysext/rsaauth/Classes/RsaEncryptionEncoder.php [new file with mode: 0644]
typo3/sysext/rsaauth/Classes/Slot/UsernamePasswordProviderSlot.php
typo3/sysext/rsaauth/Resources/PHP/FrontendLoginRsaPublicKey.php
typo3/sysext/rsaauth/Resources/Public/JavaScript/BackendLoginFormRsaEncryption.js [deleted file]
typo3/sysext/rsaauth/Resources/Public/JavaScript/FrontendLoginFormRsaEncryption.js [deleted file]
typo3/sysext/rsaauth/Resources/Public/JavaScript/FrontendLoginFormRsaEncryption.min.js [deleted file]
typo3/sysext/rsaauth/Resources/Public/JavaScript/RsaEncryption.js [new file with mode: 0644]
typo3/sysext/rsaauth/Resources/Public/JavaScript/RsaEncryptionModule.js [new file with mode: 0644]
typo3/sysext/rsaauth/Resources/Public/JavaScript/RsaEncryptionWithLib.min.js [new file with mode: 0644]
typo3/sysext/rsaauth/Resources/Public/JavaScript/RsaLibrary.js [new file with mode: 0644]
typo3/sysext/rsaauth/Resources/Public/JavaScript/jsbn/LICENSE [deleted file]
typo3/sysext/rsaauth/Resources/Public/JavaScript/jsbn/base64.js [deleted file]
typo3/sysext/rsaauth/Resources/Public/JavaScript/jsbn/jsbn.js [deleted file]
typo3/sysext/rsaauth/Resources/Public/JavaScript/jsbn/jsbn2.js [deleted file]
typo3/sysext/rsaauth/Resources/Public/JavaScript/jsbn/prng4.js [deleted file]
typo3/sysext/rsaauth/Resources/Public/JavaScript/jsbn/rng.js [deleted file]
typo3/sysext/rsaauth/Resources/Public/JavaScript/jsbn/rsa.js [deleted file]
typo3/sysext/rsaauth/Resources/Public/JavaScript/jsbn/rsa2.js [deleted file]
typo3/sysext/rsaauth/Resources/Public/JavaScript/rsaauth.js [deleted file]
typo3/sysext/rsaauth/Resources/Public/JavaScript/rsaauth_min.js [deleted file]
typo3/sysext/rsaauth/ext_localconf.php
typo3/sysext/setup/Classes/Controller/SetupModuleController.php