Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

Spring Security with angularjs

  • 20-04-2016 09:09PM
    #1
    Registered Users, Registered Users 2 Posts: 2,815 ✭✭✭


    I've been trying for the last two days to get Spring Security to work with angularjs, but to no avail.

    What does work
    I've set up basic Spring Security configuration (Java config method) and any request to the website redirects to Spring's out-of-the-box login form. This login works.I have also set it up to return HTTP response codes instead of the redirect

    What does not work
    Implementing my own login form using angularjs by calling the server. I have other angularjs stuff working (i.e. routeproviders and controllers getting json from the server and displaying it in a view), but can't get the authentication working


    Could anyone point me in the direction of a working java app on Git that using Spring Security and angularjs, preferably in its simplest implementation.

    (I like angular, but this user authentication/authorisation stuff was much more straight forward to wire using JSPs and Springs JSTL tags)


Comments

Advertisement