added secure mechanism for oauth key pair and encryption key (#4022)
commit59ec53d57fdc3262c22a9f3aa0b9e640adb9b6ac
authorBrady Miller <brady.g.miller@gmail.com>
Tue, 10 Nov 2020 16:48:21 +0000 (10 08:48 -0800)
committerGitHub <noreply@github.com>
Tue, 10 Nov 2020 16:48:21 +0000 (10 11:48 -0500)
tree0b5daad3f91f75d1085f95ee09dc2d3ecac6409f
parent96cd252180a55d335c23abfd781937301e3bac71
added secure mechanism for oauth key pair and encryption key (#4022)

1. Encryption key is created when needed and stored in encrypted form in database.
2. Key pair is created when needed with keys stored in filesystem and key passphrase
   stored in encrypted form in database.
3. No access to oath unless api is turned on.
_rest_config.php
oauth2/authorize.php
sites/default/documents/certificates/README.md
sites/default/documents/certificates/private.key [deleted file]
sites/default/documents/certificates/public.key [deleted file]
src/RestControllers/AuthorizationController.php