As mentioned in the title, I want to perform a redirection from an angularJs application residing in localhost:port1
to another angularJs application in localhost:port2
.
The two application are secured using openid-connect
server and this angualrjs directive.
The problem is when I'm logged in the first app and I perform a redirection to the second app, it tells me to re-sign in as if i'm not authenticated.
So I've figured a workaroud for this problem: I sent the access_token in the redirect url and used it in the second app..
But I read that it's a bad practise to expose the access_token in the URL ..
So my question is is there a way to send an authorization header with redirection using $window.open(url) .. ?
thanks is advance .