How to overcome intermittent Scope 'session' is not active for the current thread for OauthClientContext?
问题 I'm attempting to implement OpenId Connect sign-on in a Spring Boot 1.3.0 application with Spring Security 3.2.5 on Spring Framework 4.2.3. The implementation is very similar to this question: Protecting REST API with OAuth2: Error creating bean with name 'scopedTarget.oauth2ClientContext': Scope 'session' is not active, except that I've implemented the suggested bean for the RequestContextFilter . @Configuration @EnableOAuth2Client public class OpenIdConnectConfig { @Value("${oidc.clientId}"