# Setting up auto login

**URL:** <https://community.grafana.com/t/setting-up-auto-login/117836>\
**Category:** Authentication\
**Created:** [March 25, 2024, 2:02pm UTC](https://community.grafana.com/t/setting-up-auto-login/117836 "2024-03-25T14:02:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![reefgoldberg904](https://avatars.discourse-cdn.com/v4/letter/r/ccd318/32.png) [@reefgoldberg904](https://community.grafana.com/u/reefgoldberg904)\
**Post date:** [March 25, 2024, 2:02pm UTC](https://community.grafana.com/t/setting-up-auto-login/117836/1 "2024-03-25T14:02:12Z")

</div>

## Grafana 10.4.1 on windows 10

- Trying to set up auto log in into Grafana on localhost from an iframe inside a web application.

## 

* * *

## What happened?

- No auto login was made, currently I can “bypass” with anonymous login.

## 

* * *

## What did you **expect** to happen?

- to get my current logged in user details and log in into Grafana.

## 

* * *

## Can you copy/paste the configuration(s) that you are having problems with?

## [server]

- protocol = http
- http\_addr = 127.0.0.1
- http\_port = 8080
- domain = 127.0.0.1
- enforce\_domain = false

## [security]

- allow\_embedding = true

## [auth]

- login\_cookie\_name = grafana\_session
- disable\_login = false
- login\_maximum\_inactive\_lifetime\_duration =
- login\_maximum\_lifetime\_duration =
- token\_rotation\_interval\_minutes = 10
- disable\_login\_form = false
- api\_key\_max\_seconds\_to\_live = -1

## [auth.anonymous]

- enabled = true
- org\_name = Main Org.
- org\_role = Viewer

## [auth.basic]

- enabled = false

## [auth.proxy]

- enabled = true
- header\_name = X-WEBAUTH-USER
- header\_property = username
- auto\_sign\_up = true
- sync\_ttl = 60
- whitelist = 192.168.1.1, 192.168.2.1
- headers = Email:X-User-Email, Name:X-User-Name
- whitelist =
- headers =
- enable\_login\_token = false

## 

* * *

## Did you receive any errors in the Grafana UI or in related logs? If so, please tell us **exactly** what they were.

- No.

## 

* * *

## Did you follow any online instructions? If so, what is the URL?

- [Automatic login to grafana from web application - General - Grafana Labs Community Forums](https://community.grafana.com/t/automatic-login-to-grafana-from-web-application/16801)

- [Grafana auto login from Angular button click - Grafana / Authentication - Grafana Labs Community Forums](https://community.grafana.com/t/grafana-auto-login-from-angular-button-click/71813)

## 

* * *
