OiO.lk Blog java Getting Null pointer exception at OidcAuthorizationCodeAuthenticationProvider inspite of getting id/access tokens in Rest Template interceptor
java

Getting Null pointer exception at OidcAuthorizationCodeAuthenticationProvider inspite of getting id/access tokens in Rest Template interceptor


I am trying to integrate Spring Security in my Spring Boot project using below dependency
Please not Sprint boot starter version is 3.2.0

<dependency>
  <groupId>org.springframework.boot</groupId>
  <artifactId>spring-boot-starter-oauth2-client</artifactId>
</dependency>

I have a SecurityConfig class with RestTemplate configurations for getting the access token. I am able to see the id_token and access_token in the log file which is given by rest interceptor, but at the end I get white label error page due to null pointer exception at line no 149 which is related to additional parameters mentioned in the Subjected class.

What I am doing wrong here? Can someone help me on this issue, been stuck on this from last 3-4 days. Does rest template needs more configurations with respect to MessageConverter or anything else I have missed.

I want to see my application loaded with Spring Security configured.
Tried the mentioned approaches in the docs of Spring Security



You need to sign in to view this answers

Exit mobile version