use of org.springframework.security.oauth2.client.token.OAuth2AccessTokenSupport in project spring-security-oauth by spring-projects.
the class AbstractIntegrationTests method setupAccessTokenProvider.
@BeforeOAuth2Context
public void setupAccessTokenProvider() {
AccessTokenProvider accessTokenProvider = createAccessTokenProvider();
if (accessTokenProvider instanceof OAuth2AccessTokenSupport) {
((OAuth2AccessTokenSupport) accessTokenProvider).setRequestFactory(context.getRestTemplate().getRequestFactory());
context.setAccessTokenProvider(accessTokenProvider);
}
}
Aggregations