Skip to content

Commit

Permalink
add end_session.success event
Browse files Browse the repository at this point in the history
  • Loading branch information
panva committed Feb 25, 2017
1 parent add40e3 commit bc2e56c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ parameters, loaded client or session.
| registration_delete.error | (error, ctx) | ... whenever a handled error is encountered in the DELETE `registration` endpoint. |
| userinfo.error | (error, ctx) | ... whenever a handled error is encountered in the `userinfo` endpoint. |
| check_session.error | (error, ctx) | ... whenever a handled error is encountered in the `check_session` endpoint. |
| end_session.success | (ctx) | ... with every success end session request. |
| end_session.error | (error, ctx) | ... whenever a handled error is encountered in the `end_session` endpoint. |
| webfinger.error | (error, ctx) | ... whenever a handled error is encountered in the `webfinger` endpoint. |
| token.issued | (token) | ... whenever a token is issued. All tokens extending `BaseToken` emit this event. token can be one of `AccessToken`, `AuthorizationCode`, `ClientCredentials`, `RefreshToken`, `InitialAccessToken`, `RegistrationAccessToken`. |
Expand Down
1 change: 1 addition & 0 deletions lib/actions/end_session.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ module.exports = function endSessionAction(provider) {
const uri = redirectUri(params.postLogoutRedirectUri,
params.state != null ? { state: params.state } : undefined); // eslint-disable-line eqeqeq

provider.emit('end_session.success', this);
this.redirect(uri);

yield next;
Expand Down

0 comments on commit bc2e56c

Please sign in to comment.