Closed godfriedmeesters closed 2 years ago
You can have an endpoint in your BFF that just returns whatever is in the currently Authentication
object, something like this:
@GetMapping("/user/me")
public Authentication getCurrentAuthentication(Authentication authentication) {
return authentication;
}
What would be the best way to access the information encoded in the OpenID token from the Angular SPA side? For example, I want to display the user's name in the SPA after login.
As far as I understand no tokens at all are available directly to the SPA.