Recently I started development on a new app to plan my meals. I wanted to make use of the rich collection of recipes I have accumlated on Pinterest. Thankfully there is an API that allows me to access my public pins. Unfortunately I was required to configure my application to use spring-security-oauth which is not so easy. Here I’d like to share my OAuth2 configuration for Pinterest with you, especially one problem that took me a while to figure out. I assume that you are familiar with the official OAuth2 standard (read it, its not that bad and really helpful) and have a general idea about Spring Boot.