Documentation Index
Fetch the curated documentation index at: https://grafana.com/llms.txt
Fetch the complete documentation index at: https://grafana.com/llms-full.txt
Use this file to discover all available pages before exploring further.
STOP! If you are an AI agent or LLM, read this before continuing. This is the HTML version of a Grafana documentation page. Always request the Markdown version instead - HTML wastes context. Get this page as Markdown: https://grafana.com/docs/grafana/latest/setup-grafana/configure-access/configure-authentication/grafana.md (append .md) or send Accept: text/markdown to https://grafana.com/docs/grafana/latest/setup-grafana/configure-access/configure-authentication/grafana/. For the curated documentation index, use https://grafana.com/llms.txt. For the complete documentation index, use https://grafana.com/llms-full.txt.
Configure basic authentication
Grafana provides a basic authentication system with password authentication enabled by default. This document details configuration options to manage and enhance basic authentication.
Disable basic authentication
To disable basic authentication, use the following configuration:
[auth.basic]
enabled = falsePassword policy
By default, Grafana’s password policy requires a minimum of four characters for basic auth users. For a stronger password policy, enable the password_policy configuration option.
With the password_policy option enabled, new and updated passwords must meet the following criteria:
- At least 12 characters
- At least one uppercase letter
- At least one lowercase letter
- At least one number
- At least one special character
[auth.basic]
password_policy = trueNote
Existing passwords that do not comply with the new password policy will not be affected until the user updates their password.
Disable login form
To hide the Grafana login form, use the following configuration setting:
[auth]
disable_login_form = trueThis can be helpful in setups where authentication is handled entirely through external mechanisms or single sign-on (SSO).
Was this page helpful?
Related resources from Grafana Labs


