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

Local login requires interaction #4

Closed
Sillium opened this issue Jun 7, 2019 · 11 comments
Closed

Local login requires interaction #4

Sillium opened this issue Jun 7, 2019 · 11 comments
Assignees
Labels
bug Something isn't working

Comments

@Sillium
Copy link

Sillium commented Jun 7, 2019

I'm starting grafana-kiosk with

./grafana-kiosk.linux.amd64 --URL "https://<grafana-url>/playlists/play/2" --login-method local --username "<redacted>" --password "<redacted>" --kiosk-mode disabled --playlist

and see the screen as if I was not logged in. If I proceed to the "Sign In" button in the bottom left of the Grafana UI, I see the login form being filled in with the parameters I have passed in the command above. I am automatically logged in without clicking anything else after "Sign In".

This means, the whole kiosk is not starting without user interaction as I have to proceed to the "Sign In" button after starting. Is there any way to prevent this?

@briangann
Copy link
Collaborator

Which version of grafana are you using? I only tested with 6.2 so there may be some additional login patterns that need to be detected in the code.

Let me know and I'll duplicate the setup to sort out a fix :)

Thanks!

@briangann briangann added the bug Something isn't working label Jun 7, 2019
@Sillium
Copy link
Author

Sillium commented Jun 7, 2019

Sure, the version we're using is Grafana v6.1.0 (03346b6).

Just to make sure:

  • If I don't pass any cli parameters for login and then click on "Sign In", the form fields stay empty and there's no chance to proceed to the playlist (except entering the login credentials myself of course)
  • If I pass the parameters as shown above and then click "Sign In", the form gets filled in and then submitted without further action by me. I am then redirected to the playlist.

Thanks for having a look!

@Sillium
Copy link
Author

Sillium commented Jun 14, 2019

We just tried updating Grafana to 6.2.2 and the behaviour is the same. Login works with pre-filled username and password (= values given as cli parameters to grafana-kiosk) - but only after clicking "Sign In" in the Grafana UI.

@briangann briangann self-assigned this Jul 12, 2019
@benoitm76
Copy link

benoitm76 commented Aug 21, 2019

I also met the bug. It appear when you have anonymous access enable.

In our case for example, we have public and private dashboards. So Anonymous access is enabled, but I want to use grafana-kiosk to display private dashboards on our monitoring TV. In this case, grafana-kiosk is not able to login automatically and only show public dashboard (and display an access denied for private ones). If I remove Anonymous access it's working properly.

@briangann briangann added this to To do in grafana-kiosk Dec 20, 2019
@rapidos
Copy link

rapidos commented Apr 5, 2020

Hello, I have a fresh Grafana V6.7.2 running on one of our servers.

I managed to install grafana-kiosk very easily but when running the following command my raspberry PI is taken to the login page and the form inputs are not filled.

/usr/bin/grafana-kiosk --URL http://redacted.host.com:3000/...full_dashboard_url...&var-name= --login-method local --username pi-kiosks --password easypassword--kiosk-mode tv --lxde

If I enter my login details manually and hit the sign-in button, I am redirected to the desired dashboard.

Any clue about what I may be doing wrong ?

Did I hit the same bug ?

@michaelbeljaars
Copy link

I am experiencing the same problem. Using a local login with grafana-kiosk does not bypass the loginscreen.

@AlexHeylin
Copy link
Contributor

This is still an issue running on Windows with Grafana 7.0.0-beta3.

grafana-kiosk.windows.amd64.exe --URL http://127.0.0.1:3000/playlists/play/1 --login-method local --password redacted --username redacted --kiosk-mode tv

Thanks

@AlexHeylin
Copy link
Contributor

I've submitted a PR to fix this #34

@briangann
Copy link
Collaborator

a new release will be out today, thanks to @AlexHeylin

@AlexHeylin
Copy link
Contributor

😁

@briangann
Copy link
Collaborator

release 1.0.2 is out, including this fix and v7 compatibility :)

grafana-kiosk automation moved this from To do to Done May 17, 2020
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
grafana-kiosk
  
Done
Development

No branches or pull requests

6 participants