From b335a59d6d278166f5c125df92e3b78d0c098126 Mon Sep 17 00:00:00 2001 From: Alexander Zobnin Date: Thu, 4 Feb 2021 12:26:27 +0300 Subject: [PATCH] OAuth: custom username docs (#28400) * OAuth: more user-frienly logging * OAuth: custom user name attribute * OAuth: remove deprecated nameAttributeName option * OAuth: nameAttributePath tests * OAuth: add name_attribute_path config option * OAuth: docs for name_attribute_path option * OAuth: docs for name_attribute_path Co-authored-by: Arve Knudsen --- docs/sources/auth/generic-oauth.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/sources/auth/generic-oauth.md b/docs/sources/auth/generic-oauth.md index e1947ac3180..38730181c6f 100755 --- a/docs/sources/auth/generic-oauth.md +++ b/docs/sources/auth/generic-oauth.md @@ -75,6 +75,10 @@ Customize user login using `login_attribute_path` configuration option. Order of You can customize the attribute name used to extract the ID token from the returned OAuth token with the `id_token_attribute_name` option. +You can set the user's display name with JMESPath using the `name_attribute_path` configuration option. It operates the same way as the `login_attribute_path` option. + +> **Note:** `name_attribute_path` is available in Grafana 7.4+. + ## Set up OAuth2 with Auth0 1. Create a new Client in Auth0