grafana/pkg/services/authn
Misi 63f1c30313
Auth: Set the default org after User login (#83918)
* poc

* add logger, skip hook when user is not assigned to default org

* Add tests, move to hook folder

* docs

* Skip for OrgId < 1

* Address feedback

* Update docs/sources/setup-grafana/configure-grafana/_index.md

* lint

* Move the hook to org_sync.go

* Update pkg/services/authn/authnimpl/sync/org_sync.go

* Handle the case when GetUserOrgList returns error

---------

Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>
Co-authored-by: Karl Persson <kalle.persson@grafana.com>
2024-03-12 09:35:13 +01:00
..
authnimpl Auth: Set the default org after User login (#83918) 2024-03-12 09:35:13 +01:00
authntest Authn: Handle logout logic in auth broker (#79635) 2023-12-19 10:17:28 +01:00
clients AuthN: Use fetch user sync hook for render keys connected to a user (#84080) 2024-03-12 09:15:14 +01:00
authn.go Authn: Handle logout logic in auth broker (#79635) 2023-12-19 10:17:28 +01:00
error.go Authn: error logs (#76264) 2023-10-10 16:30:20 +02:00
identity.go RBAC: Fix authorize in org (#81552) 2024-02-01 12:37:01 +01:00