skip to Main Content

Spring Security + Keycloak: 403 after login – Ubuntu

I try to reproduce a https://www.baeldung.com/spring-boot-keycloak tutorial with some simplifications. Also my Keycloak server is on another machine. Config is also slightly changed due to deprecation of the antMatchers: @Configuration @EnableWebSecurity class SecurityConfig { private final KeycloakLogoutHandler keycloakLogoutHandler; SecurityConfig(KeycloakLogoutHandler keycloakLogoutHandler)…

VIEW QUESTION

Redis – OAuth2 Share Principal Object with Multiple Gateway Instances

I have integrated Spring Cloud Gateway with OAuth2 server. It works well with single instance gateway. here is my security config. @EnableWebFluxSecurity public class GatewaySecurityConfiguration { @Bean public SecurityWebFilterChain securityWebFilterChain(ServerHttpSecurity http) { http .authorizeExchange().pathMatchers("/user/v3/api-docs", "/actuator/**").permitAll() .anyExchange().authenticated() .and() .oauth2Login() .and() .csrf().disable();…

VIEW QUESTION

Redis – Spring – oauth 2 – Cannot convert access token to JSON

I am trying to validate an access token on a resource server. jwt.io validates the access token with the signature, so I guess the problem is spring configuration This is my pom.xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">…

VIEW QUESTION

Flutter with REST backend Springboot

I am developing a Flutter mobile application with a Spring Boot backend. I want to have three types of login methods (1). username & password (2). Facebook (3). Google. I have following questions. 1) If I handle the Authentication part…

VIEW QUESTION
Back To Top
Search