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

Multiple auth dialogs when using Basic Auth #9095

Closed
spalger opened this issue Nov 16, 2016 · 1 comment
Closed

Multiple auth dialogs when using Basic Auth #9095

spalger opened this issue Nov 16, 2016 · 1 comment
Assignees
Labels
bug Fixes for quality problems that affect the customer experience

Comments

@spalger
Copy link
Contributor

spalger commented Nov 16, 2016

Kibana version: master
Elasticsearch version: master
Original install method (e.g. download page, yum, from source, etc.): source

Code in the elasticsearch plugin is trying to parse the error messages elasticsearch produces when it requires basic authentication, in order to determine the correct realm. As the // TODO: indicates, this was intended as a stop-gap until the header was available from esjs.

ES has since changed the format of the error messages, so the header is no longer included, but it's now accessible in the response body:

{
  "error": {
    "root_cause": [
      {
        "type": "security_exception",
        "reason": "missing authentication token for REST request [/.kibana/config/6.0.0-alpha1]",
        "header": {
          "WWW-Authenticate": "Basic realm=\"security\" charset=\"UTF-8\""
        }
      }
    ],
    "type": "security_exception",
    "reason": "missing authentication token for REST request [/.kibana/config/6.0.0-alpha1]",
    "header": {
      "WWW-Authenticate": "Basic realm=\"security\" charset=\"UTF-8\""
    }
  },
  "status": 401
}

This causes multiple auth dialogs to show up because Elasticsearch's realm might not match the default realm that Kibana uses, "Authorization Required", and users have to login once per realm.

@spalger spalger added bug Fixes for quality problems that affect the customer experience P2 labels Nov 16, 2016
@spalger spalger self-assigned this Nov 16, 2016
@spalger
Copy link
Contributor Author

spalger commented Dec 14, 2016

Fixed by #9214

@spalger spalger closed this as completed Dec 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience
Projects
None yet
Development

No branches or pull requests

1 participant