ID Token and Access Token: What Is the Difference?

If you do your authentication on the backend with Spring Boot, you’ll have the user’s information available. In fact, you can inject this information into a method using the following parameter:

@AuthenticationPrincipal OAuth2User user

See Build a Beautiful CRUD App with Spring Boot and Angular for more information on this architecture.

1 Like