From f1e742dfc59335741180dafdb4c9307c4679c399 Mon Sep 17 00:00:00 2001 From: arianna Date: Fri, 16 Jan 2026 11:23:02 +0100 Subject: [PATCH] Fix typos in Authorization Documentation Signed-off-by: arianna --- .../servlet/authorization/authorize-http-requests.adoc | 4 ++-- .../ROOT/pages/servlet/authorization/method-security.adoc | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/modules/ROOT/pages/servlet/authorization/authorize-http-requests.adoc b/docs/modules/ROOT/pages/servlet/authorization/authorize-http-requests.adoc index be018724b6..e76ad48219 100644 --- a/docs/modules/ROOT/pages/servlet/authorization/authorize-http-requests.adoc +++ b/docs/modules/ROOT/pages/servlet/authorization/authorize-http-requests.adoc @@ -720,7 +720,7 @@ As a quick summary, here are the authorization rules built into the DSL: * `hasAuthority` - The request requires that the `Authentication` have xref:servlet/authorization/architecture.adoc#authz-authorities[a `GrantedAuthority`] that matches the given value * `hasRole` - A shortcut for `hasAuthority` that prefixes `ROLE_` or whatever is configured as the default prefix * `hasAnyAuthority` - The request requires that the `Authentication` have a `GrantedAuthority` that matches any of the given values -* `hasAnyRole` - A shortcut for `hasAnyAuthority` that prefixes `ROLE_` or whatever is configured as the default prefix* `hasAnyAuthority` - The request requires that the `Authentication` have a `GrantedAuthority` that matches any of the given values +* `hasAnyRole` - A shortcut for `hasAnyAuthority` that prefixes `ROLE_` or whatever is configured as the default prefix * `hasAllRoles` - A shortcut for `hasAllAuthorities` that prefixes `ROLE_` or whatever is configured as the default prefix * `hasAllAuthorities` - The request requires that the `Authentication` have a `GrantedAuthority` that matches all of the given values * `access` - The request uses this custom `AuthorizationManager` to determine access @@ -1233,4 +1233,4 @@ open class SecurityConfig { == Further Reading Now that you have secured your application's requests, consider xref:servlet/authorization/method-security.adoc[securing its methods]. -You can also read further on xref:servlet/test/index.adoc[testing your application] or on integrating Spring Security with other aspects of you application like xref:servlet/integrations/data.adoc[the data layer] or xref:servlet/integrations/observability.adoc[tracing and metrics]. +You can also read further on xref:servlet/test/index.adoc[testing your application] or on integrating Spring Security with other aspects of your application like xref:servlet/integrations/data.adoc[the data layer] or xref:servlet/integrations/observability.adoc[tracing and metrics]. diff --git a/docs/modules/ROOT/pages/servlet/authorization/method-security.adoc b/docs/modules/ROOT/pages/servlet/authorization/method-security.adoc index da4997efdb..10c5d5742b 100644 --- a/docs/modules/ROOT/pages/servlet/authorization/method-security.adoc +++ b/docs/modules/ROOT/pages/servlet/authorization/method-security.adoc @@ -758,7 +758,7 @@ fun readAccountsWhenOwnedThenReturns() { `@PostFilter` supports arrays, collections, maps, and streams (so long as the stream is still open). -For example, the above `readAccounts` declaration will function the same way as the following other three: +For example, the above `readAccounts` declaration will function the same way as the following other four: [tabs] ====== @@ -3020,7 +3020,7 @@ void fooWhenDeniedThenReturnStars() { @Test void barWhenDeniedThenReturnQuestionMarks() { - String value = this.myService.foo(); + String value = this.myService.bar(); assertThat(value).isEqualTo("???"); } ---- @@ -3040,7 +3040,7 @@ fun fooWhenDeniedThenReturnStars() { @Test fun barWhenDeniedThenReturnQuestionMarks() { - val value: String = myService.foo() + val value: String = myService.bar() assertThat(value).isEqualTo("???") } ---- @@ -3338,5 +3338,5 @@ class MyExpressionHandler: DefaultMethodSecurityExpressionHandler { == Further Reading -Now that you have secured your application's requests, please xref:servlet/authorization/authorize-http-requests.adoc[secure its requests] if you haven't already. +Now that you have secured your application's methods, please xref:servlet/authorization/authorize-http-requests.adoc[secure its requests] if you haven't already. You can also read further on xref:servlet/test/index.adoc[testing your application] or on integrating Spring Security with other aspects of you application like xref:servlet/integrations/data.adoc[the data layer] or xref:servlet/integrations/observability.adoc[tracing and metrics].