Using Spring Security 5 to integrate with OAuth 2-secured services such as Facebook and GitHub

<div class="paragraph"> <p>One of the key features in Spring Security 5 is support for writing applications that integrate with services that are secured with OAuth 2. This includes the ability to sign into an application by way of an external service such as Facebook or GitHub.</p> </div> <div class="paragraph"> <p>But with a little bit of extra code, you can also obtain an OAuth 2 access token that can be used to perform authorized requests against the service’s API.</p> </div> <div class="paragraph"> <p>In this article, we’re going to look at how to develop a Spring Boot application that, using Spring Security 5, integrates with Facebook. You can find the complete code for this article at <a href="https://github.com/habuma/facebook-security5" class="bare">https://github.com/habuma/facebook-security5</a>.</p> </div>

Mar 6, 2018 ... spring: security: oauth2: client: registration: facebook: client-id: YOUR ... restTemplate = new RestTemplate(); if (accessToken != null) { this.

Lee mas