Skip to content

Fix logout to handle no or missing accessToken [2.x] #3158

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 30, 2017

Conversation

bajtos
Copy link
Member

@bajtos bajtos commented Jan 30, 2017

Description

Return 401 when the request does not provide any accessToken argument
or the token was not found.

Also simplify the implementation of the logout method to make only
a single database call (deleteById) instead of findById + delete.

Related issues

Backport #1496

@bajtos bajtos self-assigned this Jan 30, 2017
@bajtos bajtos added the review label Jan 30, 2017
@bajtos bajtos force-pushed the backport/fix-logout-without-token branch from 9e2d68d to dcb3ea7 Compare January 30, 2017 09:12
Return 401 when the request does not provide any accessToken argument
or the token was not found.

Also simplify the implementation of the `logout` method to make only
a single database call (`deleteById`) instead of `findById` + `delete`.
@bajtos bajtos force-pushed the backport/fix-logout-without-token branch from dcb3ea7 to 1dac9ad Compare January 30, 2017 09:39
@bajtos bajtos changed the title Fix logout to handle no or missing accessToken Fix logout to handle no or missing accessToken [2.x] Jan 30, 2017
@bajtos bajtos merged commit 03391f7 into 2.x Jan 30, 2017
@bajtos bajtos deleted the backport/fix-logout-without-token branch January 30, 2017 10:03
@bajtos bajtos removed the review label Jan 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants