How to extract authentication token in @Controller
问题 I have Spring Boot app that uses OAuth 2.0 and Authorization Server. When I try to access secured page, I got redirect on login page of my authorization server (Blitz Identity Provider) and everything works great here like it should. My problem is that I can't extract authorization token in @Controller (on secured page) . That token I want to use later to authorize in second application. Tried this thing (in answer) and it worked, I got my token back, but as you can see, it's a hardcode of