Skip to content

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

Merged
bajtos merged 1 commit into2.xfrom
backport/fix-logout-without-token
Jan 30, 2017
Merged

Fix logout to handle no or missing accessToken [2.x]#3158
bajtos merged 1 commit into2.xfrom
backport/fix-logout-without-token

Conversation

@bajtos
Copy link
Copy Markdown
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