Skip to content

Commit ceab56f

Browse files
jascamarwinch
authored andcommitted
Fix AuthorizationPayloadInterceptor order using PayloadInterceptorOrder.AUTHORIZATION
Fixes gh-7434
1 parent b09e9f1 commit ceab56f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

config/src/main/java/org/springframework/security/config/annotation/rsocket/RSocketSecurity.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@
104104
* }
105105
* </pre>
106106
* @author Rob Winch
107+
* @author Jesús Ascama Arias
107108
* @since 5.2
108109
*/
109110
public class RSocketSecurity {
@@ -282,7 +283,7 @@ public Access anyExchange() {
282283

283284
protected AuthorizationPayloadInterceptor build() {
284285
AuthorizationPayloadInterceptor result = new AuthorizationPayloadInterceptor(this.authzBuilder.build());
285-
result.setOrder(PayloadInterceptorOrder.AUTHENTICATION.getOrder());
286+
result.setOrder(PayloadInterceptorOrder.AUTHORIZATION.getOrder());
286287
return result;
287288
}
288289

0 commit comments

Comments
 (0)