jgribonvald / demo-spring-cas-angular Goto Github PK
View Code? Open in Web Editor NEWExample to use CAS auth with jhipster app
Example to use CAS auth with jhipster app
I'm trying to modify the project to use a specific contextPath different of "/", but it does not work, the context path appears duplicated in the last redirect stage. Logging the "spring-security-redirect" in many parts of the RememberCasAuthenticationProvider and the parameter is correct. However, after login in CAS even the parameter "spring-security-redirect" being right, the redirect in the last stage is duplicating the contextPath.
The redirect should be:
https://localhost:8443/myapp/login/cas
But it's redirecting to:
https://localhost:8443/myapp/myapp/login/cas
Any idea where should I modify to fix this issue?
Hi,
I am trying to use latest JHipster and follow your changes but I am failing . Are you planning with latest CAS also upgrade JHipster to latest version? If yes, could you list changes in webapp so it is easier to find what should be changed.
Thanks again for great example and I hope to hear from you soon
Robert
I just worked through using your modifications for a new jhipster build (they were a lifesaver!!), and it wasn't working, and the problem was that the lastest spring security CasAuthenticationFilter has a different security endpoint that gets registered by default, so instead of:
/j_spring_cas_security_check
its now:
/login/cas
With so many changes coming from Spring 3, xml config, etc, it would be hard for a new user to catch this-
I tried your demo-spring-cas-angular project with my CAS instance and I have one question which you may be able to answer. In this example I can successfully authenticate against my CAS, it redirects me all right but as far as I can see I'm still not able to browse that part of the app that requires authentication. For example after authenticating in CAS I can't browse metrics or logs. All I get when trying is Unauthorized. Did you try to overcome this and use CAS as the only authentication mechanism for entire application? Is it possible?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.