-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revoke doorkeeper token on signout (#4134)
* update sessions toke with revoke access tokens on sign out * add revoke access token specs * update sessions_controller to revoke all tokens for user for the relevant oauth app. (This is assuming we send over the doorkeeper token on destroy session request) * update session controller spec to include bearer token header * update revoke token to send user not user id * add specs for revoke token on signout * add sign out spec when bearer token is not supplied * hound sniff on indentation in sessions_controller_spec and remove accidentally commited logs * Update app/controllers/sessions_controller.rb Co-authored-by: Campbell Allen <[email protected]> * update session controller to remove redundant safe guarding * update per hound sniff. add line after safeguard clause --------- Co-authored-by: Campbell Allen <[email protected]>
- Loading branch information
1 parent
8e0b9a4
commit fcc1440
Showing
2 changed files
with
71 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters