This recipe uses the Spring social project in order to use the OAuth2 protocol from a client perspective.
We won't create an OAuth2 Authentication Server (AS) here. We will establish connections to third-party Authentication servers (Yahoo!) to authenticate on our application. Our application will be acting as a Service Provider (SP).
We will use Spring social whose first role is to manage social connections transparently and to provide a facade to invoke the provider APIs (Yahoo! Finance) using Java objects.
<!– Spring Social Core –> <dependency> <groupId>org.springframework.social</groupId> <artifactId>spring-social-core</artifactId> ...