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

Skip to content

Commit 298a8a2

Browse files
committed
Changed broadcasted message for 403 responses to event:auth-forbidden
1 parent da32cf6 commit 298a8a2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ to HTTP 401 response.
3232

3333
In the event that a requested resource returns an HTTP 403 response (i.e. the user is
3434
authenticated but not authorized to access the resource), the user's request is discarded and
35-
the `event:auth-authorizationRequired` message is broadcased from $rootScope.
35+
the `event:auth-forbidden` message is broadcased from $rootScope.
3636

3737
###Typical use case:
3838

src/http-auth-interceptor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
$rootScope.$broadcast('event:auth-loginRequired', rejection);
6060
return deferred.promise;
6161
case 403:
62-
$rootScope.$broadcast('event:auth-authorizationRequired', rejection);
62+
$rootScope.$broadcast('event:auth-forbidden', rejection);
6363
break;
6464
}
6565
}

0 commit comments

Comments
 (0)