Skip to content

Commit 3ebcbd4

Browse files
committed
Merge branch '6.4.x'
Closes gh-16788 Closes gh-16789 Closes gh-16790 Closes gh-16791 Closes gh-16792
2 parents 86f8129 + 96cfbd1 commit 3ebcbd4

File tree

7 files changed

+20
-9
lines changed

7 files changed

+20
-9
lines changed

Diff for: docs/modules/ROOT/nav.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@
133133
*** xref:servlet/appendix/faq.adoc[FAQ]
134134
* xref:reactive/index.adoc[Reactive Applications]
135135
** xref:reactive/getting-started.adoc[Getting Started]
136-
** Authentication
136+
** xref:reactive/authentication/index.adoc[Authentication]
137137
*** xref:reactive/authentication/x509.adoc[X.509 Authentication]
138138
*** xref:reactive/authentication/logout.adoc[Logout]
139139
*** Session Management

Diff for: docs/modules/ROOT/pages/features/authentication/index.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ Once authentication is performed we know the identity and can perform authorizat
88

99
Spring Security provides built-in support for authenticating users.
1010
This section is dedicated to generic authentication support that applies in both Servlet and WebFlux environments.
11-
Refer to the sections on authentication for xref:servlet/authentication/index.adoc#servlet-authentication[Servlet] and xref:servlet/authentication/index.adoc[WebFlux] for details on what is supported for each stack.
11+
Refer to the sections on authentication for xref:servlet/authentication/index.adoc[Servlet] and xref:reactive/authentication/index.adoc[WebFlux] for details on what is supported for each stack.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[[webflux-authentication]]
2+
= Authentication
3+
:page-section-summary-toc: 1

Diff for: docs/modules/ROOT/pages/servlet/appendix/namespace/http.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ The attributes on the `<http>` element control some of the properties on the cor
3434
Use AuthorizationManager API instead of SecurityMetadataSource (defaults to true)
3535

3636
[[nsa-http-authorization-manager-ref]]
37-
* **access-decision-manager-ref**
37+
* **use-authorization-manager**
3838
Use this AuthorizationManager instead of deriving one from <intercept-url> elements
3939

4040
[[nsa-http-access-decision-manager-ref]]

Diff for: docs/modules/ROOT/pages/servlet/test/mockmvc/index.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
= Spring MVC Test Integration
33
:page-section-summary-toc: 1
44

5-
Spring Security provides comprehensive integration with https://docs.spring.io/spring-framework/reference/testing/mockmvc.html[Spring Testing MockMVC]
5+
Spring Security provides comprehensive integration with {spring-framework-reference-url}testing/mockmvc.html[Spring MVC Test]

Diff for: oauth2/oauth2-client/src/main/java/org/springframework/security/oauth2/client/web/reactive/function/client/ServerOAuth2AuthorizedClientExchangeFilterFunction.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2024 the original author or authors.
2+
* Copyright 2002-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -245,7 +245,7 @@ private static ReactiveOAuth2AuthorizedClientManager createDefaultAuthorizedClie
245245
* be used to create an Authentication for saving.</li>
246246
* </ul>
247247
* @param authorizedClient the {@link OAuth2AuthorizedClient} to use.
248-
* @return the {@link Consumer} to populate the
248+
* @return the {@link Consumer} to populate the attributes
249249
*/
250250
public static Consumer<Map<String, Object>> oauth2AuthorizedClient(OAuth2AuthorizedClient authorizedClient) {
251251
return (attributes) -> attributes.put(OAUTH2_AUTHORIZED_CLIENT_ATTR_NAME, authorizedClient);

Diff for: web/src/main/java/org/springframework/security/web/access/WebInvocationPrivilegeEvaluator.java

+11-3
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,28 @@ public interface WebInvocationPrivilegeEvaluator {
2929
/**
3030
* Determines whether the user represented by the supplied <tt>Authentication</tt>
3131
* object is allowed to invoke the supplied URI.
32+
* <p>
33+
* Note this will only match authorization rules that don't require a certain
34+
* {@code HttpMethod}.
3235
* @param uri the URI excluding the context path (a default context path setting will
3336
* be used)
3437
*/
3538
boolean isAllowed(String uri, Authentication authentication);
3639

3740
/**
3841
* Determines whether the user represented by the supplied <tt>Authentication</tt>
39-
* object is allowed to invoke the supplied URI, with the given .
42+
* object is allowed to invoke the supplied URI, with the given parameters.
4043
* <p>
41-
* Note the default implementation of <tt>FilterInvocationSecurityMetadataSource</tt>
44+
* Note:
45+
* <ul>
46+
* <li>The default implementation of <tt>FilterInvocationSecurityMetadataSource</tt>
4247
* disregards the <code>contextPath</code> when evaluating which secure object
4348
* metadata applies to a given request URI, so generally the <code>contextPath</code>
4449
* is unimportant unless you are using a custom
45-
* <code>FilterInvocationSecurityMetadataSource</code>.
50+
* <code>FilterInvocationSecurityMetadataSource</code>.</li>
51+
* <li>this will only match authorization rules that don't require a certain
52+
* {@code HttpMethod}.</li>
53+
* </ul>
4654
* @param uri the URI excluding the context path
4755
* @param contextPath the context path (may be null).
4856
* @param method the HTTP method (or null, for any method)

0 commit comments

Comments
 (0)