We have a little argument in the company on the way to get user info with oAuth2.
the first developer is getting the user info inside the access token with the library spring-security-oauth2
and decode it.
The second developer use open id connect on the top of the oAuth2 with the library Nimbus
, In this way you will get the user info from UserInfo Endpoint.
Which way is better parctice? and why to use open id connect if I can get my userinfo without this
Thanks for any help and explanations