Skip to content

Commit fc25b87

Browse files
Merge branch '5.6.x' into 5.7.x
2 parents 667cab6 + f39f215 commit fc25b87

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

config/src/main/java/org/springframework/security/config/annotation/web/configurers/DefaultLoginPageConfigurer.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@
5050
*
5151
* <h2>Shared Objects Created</h2>
5252
*
53-
* No shared objects are created. isLogoutRequest
53+
* No shared objects are created.
54+
*
5455
* <h2>Shared Objects Used</h2>
5556
*
5657
* The following shared objects are used:

config/src/main/java/org/springframework/security/config/annotation/web/configurers/UrlAuthorizationConfigurer.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,11 @@
4949
* </p>
5050
*
5151
* <pre>
52-
* protected void configure(HttpSecurity http) throws Exception {
53-
* http.apply(new UrlAuthorizationConfigurer&lt;HttpSecurity&gt;()).getRegistry()
54-
* .antMatchers(&quot;/users**&quot;, &quot;/sessions/**&quot;).hasRole(&quot;USER&quot;)
55-
* .antMatchers(&quot;/signup&quot;).hasRole(&quot;ANONYMOUS&quot;).anyRequest().hasRole(&quot;USER&quot;);
52+
* &#64;Bean
53+
* public SecurityFilterChain filterChain(HttpSecurity http, ApplicationContext context) throws Exception {
54+
* http.apply(new UrlAuthorizationConfigurer&lt;HttpSecurity&gt;(context)).getRegistry()
55+
* .requestMatchers(&quot;/users**&quot;, &quot;/sessions/**&quot;).hasRole(&quot;USER&quot;)
56+
* .requestMatchers(&quot;/signup&quot;).hasRole(&quot;ANONYMOUS&quot;).anyRequest().hasRole(&quot;USER&quot;);
5657
* }
5758
* </pre>
5859
*

docs/modules/ROOT/pages/servlet/oauth2/resource-server/multitenancy.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ public class TenantJWSKeySelector
248248
}
249249
250250
private JWSKeySelector<SecurityContext> fromTenant(String tenant) {
251-
return Optional.ofNullable(this.tenantRepository.findById(tenant)) <3>
251+
return Optional.ofNullable(this.tenants.findById(tenant)) <3>
252252
.map(t -> t.getAttrbute("jwks_uri"))
253253
.map(this::fromUri)
254254
.orElseThrow(() -> new IllegalArgumentException("unknown tenant"));

0 commit comments

Comments
 (0)