Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6894f0f61c | ||
|
|
04807ab9eb | ||
|
|
e11cb8149e |
@ -59,7 +59,11 @@ public class SecuredKeyCloakConfiguration {
|
||||
|
||||
http.anonymous().disable();
|
||||
http.httpBasic().disable();
|
||||
http.csrf().disable();
|
||||
http.csrf(csrf -> csrf.ignoringRequestMatchers("/redaction-gateway-v1/websocket/**"));
|
||||
http.headers(headers -> headers
|
||||
// allow same origin to frame our site to support iframe SockJS
|
||||
.frameOptions(frameOptions -> frameOptions
|
||||
.sameOrigin()));
|
||||
|
||||
http.oauth2ResourceServer(oauth2 -> oauth2.authenticationManagerResolver(tenantAuthenticationManagerResolver));
|
||||
http.authorizeHttpRequests().anyRequest().authenticated();
|
||||
@ -73,7 +77,7 @@ public class SecuredKeyCloakConfiguration {
|
||||
@Bean
|
||||
public WebSecurityCustomizer webSecurityCustomizer(CommonsKeyCloakProperties commonsKeyCloakProperties) {
|
||||
|
||||
return (web) -> web.debug(false)
|
||||
return (web) -> web.debug(true)
|
||||
.ignoring()
|
||||
.requestMatchers(commonsKeyCloakProperties.getIgnoredEndpoints().toArray(new String[0]))
|
||||
.requestMatchers(HttpMethod.OPTIONS, "/**");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user