I'm devoloping an application using Spring Boot , Spring Data and Angular JS .
what is the best way to deal with the authentication ???
I've never used spring security before and I can't find an example using a database (users and Roles) .can I use spring security even if I have html pages ?
what I want is that when a User (from my database) logs in , he will find his personal data. what I mean is for example like in facebook home page ,the user's name is shown on the topbar , he can see his profil ...
Also a part of my menu must be shown only to my admin user . is that possible ?
I'll be gratful if someone can tell me what are the steps to follow or give me a link for a good tutorial . I'm lost
You must go through this tutorial which was based on Dave Syer's blog posts. It clearly describes about angularjs with spring boot and authentication.
My personal suggestion for is to use Spring Security with form login, which supports role based authentication. Custom menu display is not that hard when you have angularjs and role based authentication with you. (But I'm afraid you will not be able to have 100% html solution - May have to use jsp if statement.)
Another alternative would be, if you have jboss as application server, you can use login-config.xml to change permissions