Skip to content
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

Fix expired token message in Exception header #37196

Closed
wants to merge 1 commit into from

Conversation

jkakavas
Copy link
Member

@jkakavas jkakavas commented Jan 7, 2019

We're adding a WWW-Authenticate header to indicate the token is
expired. This commit fixes the error message we return as part of
this.

Resolves elastic/kibana#27919

We're adding a WWW-Authenticate header to indicate the token is
expired. This commit fixes the error message we return as part of
this.
@jkakavas jkakavas added >bug v7.0.0 :Security/Authentication Logging in, Usernames/passwords, Realms (Native/LDAP/AD/SAML/PKI/etc) v6.7.0 v6.6.1 labels Jan 7, 2019
@jkakavas jkakavas requested a review from jaymode January 7, 2019 16:34
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-security

Copy link
Member

@jaymode jaymode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this is right. See https://tools.ietf.org/html/rfc6750#section-3.1. invalid_token is the proper response for an expired token

@jkakavas
Copy link
Member Author

jkakavas commented Jan 7, 2019

True ! Thanks for keeping me honest here, I failed to check the spec.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug :Security/Authentication Logging in, Usernames/passwords, Realms (Native/LDAP/AD/SAML/PKI/etc) v6.6.1 v6.7.0 v7.0.0-beta1
Projects
None yet
4 participants