JWT: Add org role mapping support to the JWT provider (#101584)

* add org role mapping to the jwt provider

* Fix indentation for OrgMapping assignment

* add-test

* fix linting

* add org_attribute_path

* fix test

* update doc

* update doc

* Update pkg/services/authn/clients/jwt.go

* Update docs

---------

Co-authored-by: Mihaly Gyongyosi <mgyongyosi@users.noreply.github.com>
This commit is contained in:
Quentin Bisson
2025-03-21 14:18:53 +01:00
committed by GitHub
co-authored by Mihaly Gyongyosi
parent ea89499209
commit aeca9a80a4
7 changed files with 234 additions and 46 deletions
+3 -1
View File
@@ -932,6 +932,8 @@ key_file =
key_id =
role_attribute_path =
role_attribute_strict = false
org_attribute_path =
org_mapping =
groups_attribute_path =
auto_sign_up = false
url_login = false
@@ -1543,7 +1545,7 @@ timeout = 10s
# Default data source UID to write to if not specified in the rule definition.
# Only has effect if the grafanaManagedRecordRulesDatasources feature toggle is enabled.
default_datasource_uid =
default_datasource_uid =
# Optional custom headers to include in recording rule write requests.
[recording_rules.custom_headers]