'How to obtain user information by receiving Access Token from the application (AOS, IOS) and requesting resource servers such as Google and FaceBook

I will receive the Access Token from the application (AOS, IOS) and ask resource servers such as Google and FaceBook to get user information.

I can use RestTemplate or WebClient myself, but I'm looking for a way to use the spring-boot-starter-oauth2-client to automatically do the framework.

I think it is possible to inherit and implement the class provided by the spring-boot-starter-oauth2-client. What should I do?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source