Documentation for automated readers
A curated documentation index is available at: https://grafana.com/llms.txt
A complete documentation index is available at: https://grafana.com/llms-full.txt
These indexes can help with page discovery before fetching individual documents.
This page is also available in Markdown, which may be easier for automated readers and AI tools to parse than HTML. The Markdown version is available at https://grafana.com/docs/grafana/v12.4/setup-grafana/configure-access/configure-authentication/passwordless.md, or by sending Accept: text/markdown to https://grafana.com/docs/grafana/v12.4/setup-grafana/configure-access/configure-authentication/passwordless/. For broader documentation discovery, the curated index is available at https://grafana.com/llms.txt and the complete index is available at https://grafana.com/llms-full.txt.
Important: This documentation is about an older version. It's relevant only to the release noted, many of the features and functions have been updated or replaced. Please view the current version.
Configure passwordless authentication with magic links
Passwordless authentication lets Grafana users authenticate with a magic link or one-time password (OTP) sent via email.
Enable passwordless authentication
Note
Passwordless authentication is an experimental feature. Engineering and on-call support is not available. Documentation is either limited or not provided outside of code comments. No SLA is provided. Enable the
passwordlessMagicLinkAuthenticationfeature toggle in Grafana to use this feature.
To enable passwordless authentication, use the following configuration:
[auth.passwordless]
enabled = trueCode expiration
By default, the one-time password (OTP) sent to a user’s email is valid for 20 minutes. Use the code_expiration option to change the duration that the OTP is valid.
[auth.passwordless]
enabled = true
code_expiration = 20mEnable SMTP server
The SMTP server must be enabled so that Grafana can send emails. The following configuration enables the SMTP server. For more information on configuring the SMTP server, refer to SMTP.
[smtp]
enabled = trueWas this page helpful?
Related resources from Grafana Labs


