Looking for any code examples of just checking to see if a user session is set in a cookie. In the app I'm building now, the cookie is currently set outside of angular using server side Auth via Rails. I'm building a form created outside of the Angular app as well and just pointing to a page that does a post to the Rails application and redirects back to the Angular app once the cookie is set. Everything is controlled server side and I'd like angular to just check to see if the session exists then set a function for isLoggedIn and loggedOut.
I'd then need to create routes that check if the user is logged in or out. If they are not it would just redirect them to the Rails login page. Should be easy, but almost all code examples I see are trying to build a much more robust Auth then I need. * Basically I'd be using the method described in the first answer provided here ( http://stackoverflow.com/questions/18288329/how-to-handle-authentication-in-angular-js-application ). -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
