witoldsz/angular-http-auth — pull request #28 by stu-salsbury (2013-06-05 17:50:57+00:00)
Title: 403/forbidden and cancelling

This change adds support for 403/forbidden. It adds response.data to allow the backend to indicate reasons for 403s (and theoretically for 401s though that doesn't make as much sense).

It also renames the loginConfirmed function to confirmLogin to make it clearer that you are indicating confirmation to the service and adds cancelLogin. cancelLogin clears the buffer so that requests aren't stacked up if the user doesn't log in.

I have a pull request for the gh-pages that hacks up the demo app to demonstrate these features. I'll make a pull request for that as well, though you may not want to pull it in en-masse because I was somewhat sloppy with the HTML/CSS since I don't do photoshop. Also, I forgot to edit the readme file but I imagine that if you want to merge this you'd like to do the documentation yourself, anyway.

Thanks -- this is a great little component!