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
+15-20Lines changed: 15 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,25 +1,5 @@
1
1
# Upgrade Guide
2
2
3
-
## Version 1.0.0-beta.8 to 1.0.0-beta.9
4
-
5
-
### Mandatory Config Changes
6
-
7
-
#### Config\AuthToken
8
-
9
-
If you are using the HMAC authentication you need to update the encryption settings in **app/Config/AuthToken.php**.
10
-
You will need to update and set the encryption key `$hmacEncryptionKey`. This should be set using .env and/or system
11
-
environment variables. Instructions on how to do that can be found in the
12
-
[Setting Your Encryption Key](https://codeigniter.com/user_guide/libraries/encryption.html#setting-your-encryption-key)
13
-
section of the CodeIgniter 4 documentation.
14
-
15
-
You also may wish to adjust the default Driver `$hmacEncryptionDriver` and the default Digest `$hmacEncryptionDigest`,
16
-
these currently default to `'OpenSSL'` and `'SHA512'` respectively.
17
-
18
-
### Database Migrations
19
-
20
-
After updating the `$hmacEncryptionKey` value, you will need to run `php spark migrate --all` in order to encrypt any
21
-
existing HMAC tokens.
22
-
23
3
## Version 1.0.0-beta.7 to 1.0.0-beta.8
24
4
25
5
### Mandatory Config Changes
@@ -52,6 +32,17 @@ The following items have been added. Copy the properties in **src/Config/Auth.ph
52
32
- `permission_denied` and `group_denied` are added to `Config\Auth::$redirects`.
53
33
- `permissionDeniedRedirect()` and `groupDeniedRedirect()` are added.
54
34
35
+
#### Config\AuthToken
36
+
37
+
If you are using the HMAC authentication you need to update the encryption settings in **app/Config/AuthToken.php**.
38
+
You will need to update and set the encryption key `$hmacEncryptionKey`. This should be set using .env and/or system
39
+
environment variables. Instructions on how to do that can be found in the
40
+
[Setting Your Encryption Key](https://codeigniter.com/user_guide/libraries/encryption.html#setting-your-encryption-key)
41
+
section of the CodeIgniter 4 documentation.
42
+
43
+
You also may wish to adjust the default Driver `$hmacEncryptionDriver` and the default Digest `$hmacEncryptionDigest`,
44
+
these currently default to `'OpenSSL'` and `'SHA512'` respectively.
45
+
55
46
### Fix Custom Filter If extends `AbstractAuthFilter`
56
47
57
48
If you have written a custom filter that extends `AbstractAuthFilter`, now you need to add and implement the `redirectToDeniedUrl()` method to your custom filter.
@@ -67,6 +58,10 @@ protected function redirectToDeniedUrl(): RedirectResponse
67
58
->with('error', lang('Auth.notEnoughPrivilege'));
68
59
}
69
60
```
61
+
### Database Migrations
62
+
63
+
After updating the `$hmacEncryptionKey` value, you will need to run `php spark migrate --all` in order to encrypt any
0 commit comments