You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: UPGRADING.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,19 +53,19 @@ protected function redirectToDeniedUrl(): RedirectResponse
53
53
#### Config\AuthToken
54
54
55
55
If you are using the HMAC authentication you need to update the encryption settings in **app/Config/AuthToken.php**.
56
-
You will need to update and set the encryption key `$hmacEncryption['key']`. This should be set using **.env** and/or system
57
-
environment variables. Instructions on how to do that can be found in the
56
+
You will need to update and set the encryption key in `$hmacEncryptionKeys`. This should be set using **.env** and/or
57
+
system environment variables. Instructions on how to do that can be found in the
58
58
[Setting Your Encryption Key](https://codeigniter.com/user_guide/libraries/encryption.html#setting-your-encryption-key)
59
59
section of the CodeIgniter 4 documentation and in [HMAC SHA256 Token Authenticator](./docs/references/authentication/hmac.md#hmac-secret-key-encryption).
60
60
61
-
You also may wish to adjust the default Driver `$hmacEncryption['driver']` and the default Digest`$hmacEncryption['digest']`,
62
-
these currently default to `'OpenSSL'` and `'SHA512'` respectively.
61
+
You also may wish to adjust the default Driver `$hmacEncryptionDefaultDriver` and the default Digest
62
+
`$hmacEncryptionDefaultDigest`, these currently default to `'OpenSSL'` and `'SHA512'` respectively.
63
63
64
64
#### Encrypt Existing Keys
65
65
66
-
After updating the `$hmacEncryption['key']` value, you will need to run `php spark shield:hmac encrypt` in order to encrypt
67
-
any existing HMAC tokens. This only needs to be run if you have existing unencrypted HMAC secretKeys in stored in the
68
-
database.
66
+
After updating the key in `$hmacEncryptionKeys` value, you will need to run `php spark shield:hmac encrypt` in order
67
+
to encrypt any existing HMAC tokens. This only needs to be run if you have existing unencrypted HMAC secretKeys in
0 commit comments