Skip to content

Commit 104039b

Browse files
dsuren1github-actions[bot]
authored andcommitted
#11644 - Update migration guideline for request configuration rules (#12008)
(cherry picked from commit 0ab1749)
1 parent a5d294c commit 104039b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

docs/developer-guide/mapstore-migration-guide.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,17 @@ As part of improving the authentication rules to make dynamic request configurat
7979
| `header` | `headers: { ... }` |
8080
| `browserWithCredentials` | `withCredentials: true` |
8181

82+
#### Data Directory Changes Required
83+
84+
This change also requires updating the **data directory** configuration. If you are using a custom data directory, you must migrate the `authenticationRules` entries in any overridden `localConfig.json` to the new `requestsConfigurationRules` format as described above.
85+
86+
In particular:
87+
88+
- Remove the `useAuthenticationRules` flag and the `authenticationRules` array.
89+
- Add the equivalent `requestsConfigurationRules` array using the method mapping table above.
90+
91+
Updating the data directory configuration ensures the authentication is correctly applied to requests (e.g. GeoStore or REST config endpoints will receive the expected `Authorization` header). For [reference](https://github.com/geosolutions-it/mapstore-datadir/pull/46).
92+
8293
### Replace square-button-md and square-button-sm with square-button class
8394

8495
The CSS classes `square-button-md` and `square-button-sm` have been deprecated and replaced by the unified `square-button` class. Update your custom components and themes to use the new class name.

0 commit comments

Comments
 (0)