File tree Expand file tree Collapse file tree 2 files changed +0
-19
lines changed
webflux-security/src/main/java/io/spring/sample/graphql
webmvc-http-security/src/main/java/io/spring/sample/graphql Expand file tree Collapse file tree 2 files changed +0
-19
lines changed Original file line number Diff line number Diff line change 1717
1818import org .springframework .context .annotation .Bean ;
1919import org .springframework .context .annotation .Configuration ;
20- import org .springframework .graphql .security .ReactiveSecurityDataFetcherExceptionResolver ;
2120import org .springframework .security .config .annotation .method .configuration .EnableReactiveMethodSecurity ;
2221import org .springframework .security .config .annotation .web .reactive .EnableWebFluxSecurity ;
2322import org .springframework .security .config .web .server .ServerHttpSecurity ;
@@ -53,9 +52,4 @@ public MapReactiveUserDetailsService userDetailsService() {
5352 return new MapReactiveUserDetailsService (rob , admin );
5453 }
5554
56- @ Bean
57- public ReactiveSecurityDataFetcherExceptionResolver dataFetcherExceptionResolver () {
58- return new ReactiveSecurityDataFetcherExceptionResolver ();
59- }
60-
6155}
Original file line number Diff line number Diff line change 22
33import org .springframework .context .annotation .Bean ;
44import org .springframework .context .annotation .Configuration ;
5- import org .springframework .graphql .execution .ThreadLocalAccessor ;
6- import org .springframework .graphql .security .SecurityContextThreadLocalAccessor ;
7- import org .springframework .graphql .security .SecurityDataFetcherExceptionResolver ;
85import org .springframework .security .config .annotation .method .configuration .EnableGlobalMethodSecurity ;
96import org .springframework .security .config .annotation .web .builders .HttpSecurity ;
107import org .springframework .security .config .annotation .web .configuration .EnableWebSecurity ;
@@ -41,14 +38,4 @@ public static InMemoryUserDetailsManager userDetailsService() {
4138 return new InMemoryUserDetailsManager (rob , admin );
4239 }
4340
44- @ Bean
45- public SecurityDataFetcherExceptionResolver dataFetcherExceptionResolver () {
46- return new SecurityDataFetcherExceptionResolver ();
47- }
48-
49- @ Bean
50- public ThreadLocalAccessor threadLocalAccessor () {
51- return new SecurityContextThreadLocalAccessor ();
52- }
53-
5441}
You can’t perform that action at this time.
0 commit comments