Commit 3f87240
committed
Add XML configuration guidance to authorizeRequests deprecation warning
When using XML configuration with <intercept-url>, Spring Security
internally registers a FilterSecurityInterceptor, which triggers
the authorizeRequests deprecation warning. However, the warning
message previously provided no actionable guidance for XML users.
This commit adds a note to the deprecation warning indicating that
XML users should add use-authorization-manager="true" to their
<http> element to migrate to the modern authorization model.
Closes gh-172591 parent fe2e52f commit 3f87240
2 files changed
Lines changed: 12 additions & 1 deletion
File tree
- config/src
- main/java/org/springframework/security/config/http
- test/java/org/springframework/security/config/http
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | | - | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
130 | 132 | | |
131 | 133 | | |
132 | 134 | | |
| |||
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
135 | 144 | | |
136 | 145 | | |
137 | 146 | | |
| |||
0 commit comments