Skip to content

Always return 401 for not valid tokens (#49736)#50042

Merged
jkakavas merged 2 commits intoelastic:7.xfrom
jkakavas:tokens-401-7.x
Dec 11, 2019
Merged

Always return 401 for not valid tokens (#49736)#50042
jkakavas merged 2 commits intoelastic:7.xfrom
jkakavas:tokens-401-7.x

Conversation

@jkakavas
Copy link
Copy Markdown
Contributor

@jkakavas jkakavas commented Dec 10, 2019

Return a 401 in all cases when a request is submitted with an
access token that we can't consume. Before this change, we would
throw a 500 when a request came in with an access token that we
had generated but was then invalidated/expired and deleted from
the tokens index.

Resolves: #38866
Backport of #49736

Return a 401 in all cases when a request is submitted with an
access token that we can't consume. Before this change, we would
throw a 500 when a request came in with an access token that we
had generated but was then invalidated/expired and deleted from
the tokens index.

Resolves: elastic#38866
@jkakavas
Copy link
Copy Markdown
Contributor Author

@elasticmachine update branch

@jkakavas jkakavas merged commit 3b613c3 into elastic:7.x Dec 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants