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
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 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
+
[Setting Your Encryption Key](https://codeigniter.com/user_guide/libraries/encryption.html#setting-your-encryption-key)
59
+
section of the CodeIgniter 4 documentation and in [HMAC SHA256 Token Authenticator](./docs/references/authentication/hmac.md#hmac-secret-key-encryption).
60
+
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
+
64
+
#### Encrypt Existing Keys
65
+
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