Spring Authorization Server 7.1
Last reviewed Oct 11, 2026
Prompt Details
Prompt Composition
6prompts
- Java 25113 lines · 2.8K tokens
- Spring Framework 7.070 lines · 2.4K tokens
- Spring Boot 4.162 lines · 2.7K tokens
- Spring MVC 7.060 lines · 1.8K tokens
- Spring Security 7.165 lines · 2.4K tokens
- Spring Authorization Server 7.158 lines · 2K tokens
Total428 lines · 14K tokens
CWE Coverage
- 15
- 20
- 22
- 59
- 73
- 78
- 79
- 88
- 89
- 90
- 95
- 113
- 117
- 190
- 201
- 203
- 208
- 209
- 214
- 250
- 294
- 295
- 297
- 306
- 307
- 308
- 312
- 319
- 323
- 327
- 329
- 338
- 345
- 346
- 347
- 352
- 362
- 367
- 378
- 384
- 409
- 427
- 470
- 471
- 488
- 494
- 502
- 524
- 532
- 552
- 601
- 611
- 613
- 639
- 640
- 653
- 681
- 732
- 749
- 770
- 772
- 776
- 789
- 799
- 807
- 829
- 862
- 863
- 913
- 915
- 916
- 918
- 922
- 942
- 1333
Prompt Preview
Apply the Spring Security 7.1 baseline first. These rules cover Spring Authorization Server 7.1.1.
Issuer and endpoint boundaries
- Set one fixed HTTPS issuer with
AuthorizationServerSettings.issuer(...); when absent, issuer data is resolved from the current request and therefore depends on trusted host/forwarding configuration. - Keep
multipleIssuersAllowed(false)unless path-based multi-tenancy is designed end to end; issuer-path selection must map to an authenticated tenant configuration, keys, clients, and storage. - Protect the default authorization, PAR, device, token, revocation, introspection, registration, JWK, user-info, and logout endpoint paths according to their protocol roles.
- Remember that endpoint paths in
AuthorizationServerSettingsdo not enable their features: PAR, device endpoints, OAuth2 client registration, OIDC, and OIDC client registration are disabled by default and require explicit configuration plus their own access policy. - Build the authorization-server
SecurityFilterChainwith the framework endpoint matcher and a separate catch-all application chain; first-match gaps can expose surrounding login or consent routes.
Client registration and authentication
- Register exact redirect and post-logout URIs and never use wildcard, suffix, open-redirect, or request-derived matching, except the protocol-defined loopback-port variation for native-client authorization redirects. Require HTTPS for web redirects.
- Keep
ClientSettings.requireProofKey(true), the 7.1 default, for authorization-code clients; disabling it relaxes the