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

[BUG] SAML authentication not working #27

Open
devvick opened this issue Feb 14, 2023 · 5 comments
Open

[BUG] SAML authentication not working #27

devvick opened this issue Feb 14, 2023 · 5 comments
Labels
bug Something isn't working

Comments

@devvick
Copy link

devvick commented Feb 14, 2023

Trying to download report using SAML auth is not working:
opensearch-reporting-cli -u 'https://opensearch.domain/_dashboards/goto/534bf220622bbb1095cdf24e6bd447d9?security_tenant=global' -a saml -t global -n report.pdf -c username:password
Error:

✖ Downloading report failed. Error: No element found for selector: [name="identifier"]

I'm using AWS OpenSearch Service with SAML configuration from AzureAD.

@devvick devvick added bug Something isn't working untriaged labels Feb 14, 2023
@rupal-bq
Copy link
Contributor

Thanks for reporting this issue. I will try to reproduce this and provide update.

@ciuline
Copy link

ciuline commented Mar 13, 2024

Hello,
Any updates on this issue, please? I encounter the same exact problem.
The report generation works ok for basic authentication, but not for SAML.
Thanks

@animeshjha-veritas
Copy link

animeshjha-veritas commented May 6, 2024

Hello,

Could someone please assist me with downloading the report using any available authentication method?

I'd like to confirm if my approach to passing the URL, username, and password within quotes is correct:

opensearch-reporting-cli -u 'https://<domain>/goto/52b219fb76f754216f8037d1211ac3a5' -a basic -c 'some_username':'some_password_with_special_characters' -f png

When I open the link in incognito mode, I'm directed to the following page:
idp

If I remove the -a authentication type from the CLI command, the same page prompting for an Identity Provider selection is downloaded as a PNG.

How can I bypass the Identity Provider selection so that the provided credentials work properly?

Following are the errors that I get from the provided authentications methods:

  1. saml:
- Fetching the arguments values
√ Fetched argument values
- Connecting to url https://<domain>/goto/52b219fb76f754216f8037d1211ac3a5
× Downloading report failed. Error: No element found for selector: [name="identifier"]
  1. basic:
- Fetching the arguments values
√ Fetched argument values
- Connecting to url https://<domain>/goto/52b219fb76f754216f8037d1211ac3a5
× Downloading report failed. Error: No element found for selector: input[data-test-subj="user-name"]
  1. cognito:
- Fetching the arguments values
√ Fetched argument values
- Connecting to url https://<domain>/goto/52b219fb76f754216f8037d1211ac3a5
× Downloading report failed. Error: No element found for selector: [name="username"]

Please do let me know if we have a solution for this issue.
Regards

@elnoxgdl
Copy link

Hi Team,

Any update? I hace the same error while using basic auth. I am running dashboards 2.8

@jay2610
Copy link

jay2610 commented Jun 6, 2024

I am getting same error on SAML.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants