Reputation: 2826
I'm trying to implement OAuth2
authentication methods for an internal application. The process looks quite straightforward:
code
received from OAuth2 server
OAuth2 server
to obtain access_token
access_token
is received user is being redirected back to initial page and a special header Header["Access-Token"]
is being set during this redirectionAuthentication works fine in this case, the only prolem I'm having is that I can't read Header["Access-Token"]
after the redirection back to initial page.
Using interceptors
I'm able to intercept requests which are being sent from the application (e.g. REST API requests) but not the ones during the page load.
Is there any solution using Angular for this problem?
Upvotes: 1
Views: 2025
Reputation: 71
I hope it will be helpful.
Upvotes: 1