1
0
mirror of synced 2026-08-05 17:57:15 +00:00

Remove deprecation warnings with Context.putAll

Closes gh-11476
This commit is contained in:
Steve Riesenberg
2022-07-08 14:36:20 -05:00
parent 7da34cfa2c
commit 206c6ffb54
3 changed files with 4 additions and 4 deletions
@@ -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());
}
}