Skip to content

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

Merged
bajtos merged 1 commit into
2.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 into
2.xfrom
backport/fix-logout-without-token

Conversation

@bajtos

Copy link
Copy Markdown
Member

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

@bajtosbajtos self-assigned this Jan 30, 2017
@bajtos
bajtosforce-pushed the backport/fix-logout-without-token branch from 9e2d68d to dcb3ea7CompareJanuary 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
bajtosforce-pushed the backport/fix-logout-without-token branch from dcb3ea7 to 1dac9adCompareJanuary 30, 2017 09:39
@bajtosbajtos changed the title Fix logout to handle no or missing accessTokenFix logout to handle no or missing accessToken [2.x]Jan 30, 2017
@bajtos
bajtos merged commit 03391f7 into 2.xJan 30, 2017
@bajtos
bajtos deleted the backport/fix-logout-without-token branch January 30, 2017 10:03
@bajtosbajtos removed the review label Jan 30, 2017
Sign up for freeto 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

@bajtos@ritch