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 17
17
18
18
import org .springframework .context .annotation .Bean ;
19
19
import org .springframework .context .annotation .Configuration ;
20
- import org .springframework .graphql .security .ReactiveSecurityDataFetcherExceptionResolver ;
21
20
import org .springframework .security .config .annotation .method .configuration .EnableReactiveMethodSecurity ;
22
21
import org .springframework .security .config .annotation .web .reactive .EnableWebFluxSecurity ;
23
22
import org .springframework .security .config .web .server .ServerHttpSecurity ;
@@ -53,9 +52,4 @@ public MapReactiveUserDetailsService userDetailsService() {
53
52
return new MapReactiveUserDetailsService (rob , admin );
54
53
}
55
54
56
- @ Bean
57
- public ReactiveSecurityDataFetcherExceptionResolver dataFetcherExceptionResolver () {
58
- return new ReactiveSecurityDataFetcherExceptionResolver ();
59
- }
60
-
61
55
}
Original file line number Diff line number Diff line change 2
2
3
3
import org .springframework .context .annotation .Bean ;
4
4
import 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 ;
8
5
import org .springframework .security .config .annotation .method .configuration .EnableGlobalMethodSecurity ;
9
6
import org .springframework .security .config .annotation .web .builders .HttpSecurity ;
10
7
import org .springframework .security .config .annotation .web .configuration .EnableWebSecurity ;
@@ -41,14 +38,4 @@ public static InMemoryUserDetailsManager userDetailsService() {
41
38
return new InMemoryUserDetailsManager (rob , admin );
42
39
}
43
40
44
- @ Bean
45
- public SecurityDataFetcherExceptionResolver dataFetcherExceptionResolver () {
46
- return new SecurityDataFetcherExceptionResolver ();
47
- }
48
-
49
- @ Bean
50
- public ThreadLocalAccessor threadLocalAccessor () {
51
- return new SecurityContextThreadLocalAccessor ();
52
- }
53
-
54
41
}
You can’t perform that action at this time.
0 commit comments