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
+4 -2
View File
@@ -132,7 +132,7 @@
# Set to true or false to enable or disable high availability mode.
# When it's set to false some functions will be simplified and only run in-process
# instead of relying on the database.
#
#
# Only set it to false if you run only a single instance of Grafana.
;high_availability = true
@@ -901,6 +901,8 @@
;key_id = some-key-id
;role_attribute_path =
;role_attribute_strict = false
;org_attribute_path =
;org_mapping =
;groups_attribute_path =
;auto_sign_up = false
;url_login = false
@@ -1525,7 +1527,7 @@ timeout = 30s
# 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]