Getting a login page
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?
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
HttpClientrequests 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