angularj-universal icon indicating copy to clipboard operation
angularj-universal copied to clipboard

Getting a login page

Open jfelix76 opened this issue 7 years ago • 1 comments

I have combed over your directions. I have solved most of my issues by rereading your post. Very thorough. But I have an angular 5 app integrated with your Spring Boot example. When I request the url I have configured I immediately get a login page. Cant seem to get around this issue. Any clue what Im doing wrong?

jfelix76 avatar Feb 15 '18 19:02 jfelix76

Hey Felix

No mistake from your side - it's from my side. At the moment it is just not properly implemented because I am still not 100% sure what the best way is. The problem in short:

  • You are authenticated by the Spring Boot/the Java web framework
  • All HttpClient requests in your Angular application during server side are done by Node.js - and Node.js hasn't the authentication (Session/Cookie/Token etc.) from Spring Boot

This means I have to find a solution to a.) Pass down all information to Node.js (which is insecure) or b.) Reroute all Http requests back to Java (More complicated but secure).

I was thinking about that problem since January and finally found the time to open a feature request in angular/angular: https://github.com/angular/angular/issues/22443

swaechter avatar Feb 25 '18 19:02 swaechter