Remove deprecation warnings with Context.putAll
Closes gh-11476
This commit is contained in:
+2
-2
@@ -49,8 +49,8 @@ public class ReactorContextWebFilter implements WebFilter {
|
||||
}
|
||||
|
||||
private Context withSecurityContext(Context mainContext, ServerWebExchange exchange) {
|
||||
return mainContext
|
||||
.putAll(this.repository.load(exchange).as(ReactiveSecurityContextHolder::withSecurityContext));
|
||||
return mainContext.putAll(
|
||||
this.repository.load(exchange).as(ReactiveSecurityContextHolder::withSecurityContext).readOnly());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user