Please mention that in the application.properties file, you need:
Derek Lin
191

Hi Derek,

Thanks for pointing this out. The filter order is in the application.properties file. However, I forgot to mention in the tutorial. Setting security.oauth2.resource.filter-order to 3 is required because the @EnableResourceServer annotation creates a WebSecurityConfigurerAdapter with a hard-coded Order (of 3) by default. The orders need to be aligned.

Like what you read? Give Nouhoun Y. Diarra a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.