We have a angularjs site which is SSO protected and deployed on our apache webserver.
- Once the user is authenticated and authorized for access - the SSO agent would enrich the http header section with relevant user information and forward the request to the angular site.
- Based on the presence of the authorization parameters in the header the user will be taken to the home page.
My question is regarding the approach and the best practices.
How do we read the request headers that are being sent to the angularjs application. I have created a interceptor which can read the header information but am not sure if that approach is correct.
Question related to approach - What is the recommended best practice to handle such scenario - i have a angular website residing on webserver and an REST api project. The website and REST communicates using an api key for security.
Appreciate all your responses.