JamesRandall / AngularJS-OAuth2

Package for allowing an AngularJS application to authenticate with an OAuth 2 / Open ID Connect identity provider using the implicit flow.
MIT License
46 stars 42 forks source link

Interceptor doesn't handle badrequest response properly #2

Closed bvuden closed 9 years ago

bvuden commented 9 years ago

Hi James,

When a badrequest (status 400) response comes through the interceptor it is not rejected. As a result any client side validation messages will not be displayed and the user will be forwarded to the service method's succes route. You can see the fix in my fork if you want to.

Cheers, Bart

JamesRandall commented 9 years ago

Thanks Bart - I noticed myself and by the looks of it fixed it simultaneously with the same fix. I've also updated it today so that if you have route params they carry through across the redirect.