This is a spring boot application, which executes the three-legged OAuth1.0a flow and communicates with the ImmoScout24 API. We use Spring Security to secure the application with a login dialog and to sign requests to the ImmoScout24 API.
- First you need to set your own CLIENT_KEY and CLIENT_SECRET in the code.
- Run the application with maven using
mvn spring-boot:run
. - Once the application is running, Spring will print a random password to stdin which you can use to login to the application.
The password will be shown in the logs as
Using generated security password: <spring security password>
- Open a browser and navigate to: http://localhost:8080/load-real-estates
- Log in with the credentials:
- username:
user
- password:
<spring security password>
- username:
- The application will initiate the three-legged OAuth1.0a flow in which you will be redirected to ImmoScout24, where you need to confirm that the application can communicate with the ImmoScout24 API. ImmoScout24 redirects you back to the application where you will then see real-estate data that has been requested from the ImmoScout24 API.