1

I have a backend developed using micro service architecture which used Spring Security older version where we can use @EnableResourceServer, ResourceServerConfigurerAdapter and

public void configure(ResourceServerSecurityConfigurer config) {
    config.resourceId(resourceId);
}

As you all know these features have been deprecated in later versions (5.7.x) and resource id feature is kind of important when it comes to micro services.

I am in a process of upgrading services with later versions. However I was unable to find exact solution to replace above. Can anyone guide me for new way of doing this or any other way to do this?

Technologies: Java 17, Spring Boot 5.7.2, Spring Security 5.7.2

dur
  • 15,689
  • 25
  • 79
  • 125
sushi
  • 139
  • 1
  • 9
  • 1
    See https://github.com/spring-projects/spring-security/wiki/OAuth-2.0-Migration-Guide#unported-features – dur Aug 23 '22 at 07:46
  • @dur I already went through this. there are guidelines for resource server. but nothing for resource id. Thanks! – sushi Aug 23 '22 at 10:54
  • 2
    The last sentence is all about the resource id. – dur Aug 23 '22 at 11:56

0 Answers0