Incremental authorization for Google OAuth2 Sign in with Spring Security
问题 I was wondering if there is a way for authorizing incrementally with Spring Security (as mentioned here) By default spring security provides basic profile access when using Google sign OAuth verification. That flow is correct. I would however want to request for additional scopes (Gmail Read, Calendar read etc) on certain URL endpoints. I have already tried using the @PreAuthorize property on the endpoint along with enabling @EnableGlobalMethodSecurity(prePostEnabled = true) as in the code.