How to integrate Apache Shiro with AngularJS
These are valid questions ... actually I am currently reviewing this prototyping. I won't get to it soon though I'm tied
- create your login.html which is the view and main page
- create your controller (angular style)
- create model (angular style)
- write your Java model
- include shiro libs inside your maven project xml file
- implement shiro realm configuration like
- implement a Java security service to be started with siro onlogin
- manage your doMethods for shiro in the service
- allow access to Java permission and role logic
- deploy ... DONE
It's a pity that I couldn't give you more, just didn't have the opportunity to offend him. I do end up though.
I'm sure someone else will clean up this, but siro and angular I say it's ok ...
in fact all JAVA and angular are perfect ... nobody realizes that http has been abused and abused for twenty years ... (normally 15) ... and REST puts the old days forever.
here is your new architecture
Bootstrap, Angular, MVC JavaScript, REST, Hibernate JPA
source to share
BackBone is another Angular alternative, but its listener implementation is required. Angular does more for you without the need for listeners and how HTMl would be implemented if it was application-centric when it was invented.
All of this is to implement MVC and bury your ajax so you get clean lookin html.
source to share