witoldsz / angular-http-auth

MIT License
2.38k stars 418 forks source link

Added ignoreAuthBuffer configuration #98

Closed biblicalph closed 9 years ago

biblicalph commented 9 years ago

ignoreAuthBuffer configuration allows a request to modify buffering of the request on failure. This is particularly useful for handling application logout in SPAs. The server returns a 401 for logout requests and this should not be buffered as buffering will mean the user will be logged out again on successful login. ignoreAuthModule is not sufficient here as the 401 request must be captured to render the login page. The logout request however must not be buffered

witoldsz commented 9 years ago

I'm sorry, but I cannot merge this. The use-case is just not sufficient. I would use ignoreAuthModule and:

Either way is straight and simple. Is that good enough for you?