grafana/pkg/services/org
Misi 9236c5a5cf
Auth: Add OrgRoleMapper service (#86973)
* Add OrgRoleMapper

* Address feedback, add more tests

* Prevent resetting assignments when global org mapping fails

* Provide a parsing function instead of recalculating the org_mapping on every mapping

* Introduce strict role parsing/mapping

* Introduce MappingConfiguration

* Handle other edge case

* Add tests

* lint

* Apply documentation update suggestions

* Apply GetDefaultOrgMapping suggestions from code review

* Apply suggestions for cleaning up unnecessary err in ParseOrgMappingSettings

* Apply suggestions from code review

* Address feedback suggestions

* Cleanup

* Reduce cognitive complexity of ParseOrgMappingSettings

---------

Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>
2024-05-06 09:25:47 +02:00
..
orgimpl User: Add tracing (#87028) 2024-04-30 13:15:56 +02:00
orgtest Auth: Add OrgRoleMapper service (#86973) 2024-05-06 09:25:47 +02:00
model.go User: Support sort query param for user and org user, search endpoints (#75229) 2023-09-28 10:16:18 +02:00
org.go Auth: Add OrgRoleMapper service (#86973) 2024-05-06 09:25:47 +02:00