Skip to content

When using spring-addons-oidc-starter, is @PreAuthorize automatically enabled? #149

Answered by bdruth
bdruth asked this question in Q&A
Discussion options

You must be logged in to vote

We were able to get @PreAuthorize to work by adding

@Configuration
@EnableMethodSecurity(prePostEnabled = true)
public class MyWebSecurityConfig {}

in the classpath. Is this the right way to do it?

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ch4mpy
Comment options

@ch4mpy
Comment options

@bdruth
Comment options

Answer selected by ch4mpy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants