You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ the configuration object (this is the requested URL, payload and parameters)
30
30
of every HTTP 401 response is buffered and everytime it happens, the
31
31
`event:auth-loginRequired` message is broadcasted from $rootScope.
32
32
33
-
The `authService` has only one method: #loginConfirmed().
33
+
The `authService` has only one method: `loginConfirmed()`.
34
34
You are responsible to invoke this method after user logged in. You may optionally pass in
35
35
a data argument to the loginConfirmed method which will be passed on to the loginConfirmed
36
36
$broadcast. This may be useful, for example if you need to pass through details of the user
@@ -39,11 +39,11 @@ to HTTP 401 response.
39
39
40
40
In the event that a requested resource returns an HTTP 403 response (i.e. the user is
41
41
authenticated but not authorized to access the resource), the user's request is discarded and
42
-
the `event:auth-forbidden` message is broadcasted from $rootScope.
42
+
the `event:auth-forbidden` message is broadcast from $rootScope.
43
43
44
44
#### Ignoring the 401 interceptor
45
45
46
-
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
+
Sometimes you might not want the interceptor 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.
47
47
48
48
###Typical use case:
49
49
@@ -70,7 +70,7 @@ You can supply additional data to observers across your application who are list
70
70
Use the `authService.loginConfirmed([data])` method to emit data with your login event.
Successful login means that the previous request are ready to be fired again, however now that login has occured certain aspects of the previous requests might need to be modified on the fly. This is particularly important in a token based authentication scheme where an authorization token should be added to the header.
73
+
Successful login means that the previous request are ready to be fired again, however now that login has occurred certain aspects of the previous requests might need to be modified on the fly. This is particularly important in a token based authentication scheme where an authorization token should be added to the header.
74
74
75
75
The `loginConfirmed` method supports the injection of an Updater function that will apply changes to the http config object.
0 commit comments