I have a Spring Boot application as a backend and an Angular 6 front end. They work great separately, and I used this guide as a starting point. I am now getting to the point where I want to use external OAuth to authenticate my users to get access to some of their WoW Character data.
I have a decent idea on how to restrict access to the backend with OAuth as Spring Security makes that pretty easy. What I am struggling with, is if my users are authenticated + authorized to access character A, how do I handle this on the front end and the back end?
Since Angular is handling the routing for the HTML pages, and those HTML pages call my back end, I'm not sure how to extend the authorization to Angular. I can show code, but I think this is more of a conceptual problem than a code problem.