witoldsz / angular-http-auth

MIT License
2.38k stars 417 forks source link

adding 403 as possible response code to trigger a loginRequired event #77

Closed psalami closed 9 years ago

psalami commented 9 years ago

the HTTP spec does not specify 403 as a valid response code for requests that require authentication, but the Django server sends 403 for requests that failed because the user was not authenticated

witoldsz commented 9 years ago

If I were you, I would consider inserting a 403->401 interceptor, so this module could operate without modifications in your environment. Another option would be to fix your server, if that's possible and easy.