# CRISP with OAuth2RestTemplate

**URL:** <https://community.bloomreach.com/t/crisp-with-oauth2resttemplate/488>\
**Category:** Experience Manager (PaaS/OnPrem)\
**Created:** [October 12, 2018, 9:03am UTC](https://community.bloomreach.com/t/crisp-with-oauth2resttemplate/488 "2018-10-12T09:03:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Srinivas\_Jasti](https://avatars.discourse-cdn.com/v4/letter/s/43a26b/32.png) [@Srinivas\_Jasti](https://community.bloomreach.com/u/Srinivas_Jasti)\
**Post date:** [October 12, 2018, 9:03am UTC](https://community.bloomreach.com/t/crisp-with-oauth2resttemplate/488/1 "2018-10-12T09:03:40Z")

</div>

I wanted a RestTemplate to carry a AcessToken therefore have choosen OAuth2RestTemplate thereby provided  
the bean config org.springframework.security.oauth2.client.OAuth2RestTemplate at bootstrap\configuration\src\main\resources\configuration\modules\crispregistry\moduleconfig\resourceresolvercontainer as mentioned in the demo , However when Application started I get java.lang.NoSuchMethodException: org.springframework.security.oauth2.client.OAuth2RestTemplate.() exception…

When I change the config to that org.springframework.web.client.RestTemplate  
of it works fine the crisp version is 1.0.4 and Hippo cms version is 11.x

could you point out how to proceed.

Many Thanks  
Srinivas Jasti

---

<div class="post-metadata">

**Author:** ![machak](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/machak/32/1298_2.png) [@machak](https://community.bloomreach.com/u/machak)\
**Post date:** [October 12, 2018, 9:15am UTC](https://community.bloomreach.com/t/crisp-with-oauth2resttemplate/488/2 "2018-10-12T09:15:58Z")

</div>

have you you added oauth dependency? e.g.

```
<dependency>
<groupId>org.springframework.security.oauth</groupId>
<artifactId>spring-security-oauth2</artifactId>
<version>2.3.3.RELEASE</version>

```
