Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4b2b849

Browse files
committed
Merge pull request witoldsz#89 from ffefox/master
Added information about the ignoreAuthModule config flag to the manual
2 parents fa28d6a + 5c6970c commit 4b2b849

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ In the event that a requested resource returns an HTTP 403 response (i.e. the us
4040
authenticated but not authorized to access the resource), the user's request is discarded and
4141
the `event:auth-forbidden` message is broadcasted from $rootScope.
4242

43+
#### Ignoring the 401 interceptor
44+
45+
Sometimes you might not want the intercepter to intercept a request even if one returns 401 or 403. In a case like this you can add `ignoreAuthModule: true` to the request config. A common use case for this would be, for example, a login request which returns 401 if the login credentials are invalid.
46+
4347
###Typical use case:
4448

4549
* somewhere (some service or controller) the: `$http(...).then(function(response) { do-something-with-response })` is invoked,

0 commit comments

Comments
 (0)