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

Unable to publish dashboard TEST API dashboard { message: 'Unauthorized' } Got statusCode401 #49

Open
ondrejFuchs opened this issue Apr 30, 2018 · 3 comments

Comments

@ondrejFuchs
Copy link

ondrejFuchs commented Apr 30, 2018

Hi,
I try to connect to grafana running in docker and I don't know how to set up
grafana.configure({
url: 'http://localhost:3000/api/dashboards/db/',
cookie: 'auth-openid=REPLACETOKENIFAPPLICABLE'
});

I usually use API TOKEN in form: Authorization: Bearer "My-token", but how to configure "cookie"?
For any reaction I will be grateful.

@evoup
Copy link

evoup commented Aug 19, 2019

cookie could be find in chrome debugger,which name is grafana_session

@memyselfandm
Copy link

I'm curious about the choice to use cookie as an authentication method when Grafana has API key support.

@csm0522
Copy link

csm0522 commented Feb 16, 2023

To set it in the header, rathan cookie.

grafana.configure({ url: 'XXXapi/dashboards/db', headers: {'Authorization': 'Bearer XXX9'} });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants