grafana/pkg/services
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
..
accesscontrol Chore: Fix log message in access control (#84101) 2024-03-07 23:34:22 +02:00
alerting Prometheus: Introduce prometheus backend library (#83952) 2024-03-11 17:22:33 +01:00
annotations Alerting/Annotations: Prevent panics from composite store jobs from crashing Grafana (#83459) 2024-02-28 20:16:37 +02:00
anonymous Chore: Update test database initialization (#81673) 2024-02-09 09:35:39 -05:00
apikey Chore: Update test database initialization (#81673) 2024-02-09 09:35:39 -05:00
apiserver K8s: enable insecure to skip server cert validation for now (#84038) 2024-03-12 01:13:14 +02:00
auth JWT Authentication: Add support for specifying groups in auth.jwt for teamsync (#82175) 2024-02-09 16:35:58 +01:00
authn Auth: Set the default org after User login (#83918) 2024-03-12 09:35:13 +01:00
caching Fixing typos (#70487) 2023-06-22 09:43:38 +01:00
cleanup Auth: Fix email verification bypass when using basic authentication (#82914) 2024-02-16 18:54:59 +01:00
cloudmigration Restructure cloudmigration service (#83211) 2024-02-26 14:52:16 +01:00
contexthandler AuthProxy: Allow disabling Auth Proxy cache (#83755) 2024-03-01 11:31:06 +01:00
correlations Identity: Unfurl OrgID in pkg/services to allow using identity.Requester interface (#76113) 2023-10-09 10:40:19 +02:00
dashboardimport Revert "Add FolderUID for library elements" (#83776) 2024-03-01 18:16:43 +02:00
dashboards Chore: Add support bundle for folders (#83360) 2024-02-26 11:27:22 +01:00
dashboardsnapshots K8s: Add apimachinery and apiserver packages (#83190) 2024-02-23 15:15:43 -05:00
dashboardversion Chore: Update test database initialization (#81673) 2024-02-09 09:35:39 -05:00
datasourceproxy Errors: Make errors the same in dev as prod (#77366) 2023-10-30 14:06:26 -04:00
datasources QueryService: Use types from sdk (#84029) 2024-03-08 18:12:59 +02:00
encryption Chore: use any rather than interface{} (#74066) 2023-08-30 18:46:47 +03:00
extsvcauth AuthN: Remove embedded oauth server (#83146) 2024-02-26 11:29:09 +01:00
featuremgmt FeatureToggles: Add feature toggle for sso email verification (#84184) 2024-03-11 15:09:44 +01:00
folder Revert "Add FolderUID for library elements" (#83776) 2024-03-01 18:16:43 +02:00
grpcserver Swap weaveworks/common utilities for equivalents in grafana/dskit (#80051) 2024-01-05 10:08:38 -06:00
guardian Remove folderID from service tests (#80615) 2024-01-26 17:36:35 +02:00
hooks Hooks: Remove AddLoginHook and RunLogin hooks (#73227) 2023-08-17 09:51:45 +02:00
kmsproviders Secrets: Make the Migrator extensible (#67307) 2023-06-19 23:44:01 +02:00
ldap Grafana: Replace magic number with a constant variable in response status (#80132) 2024-02-27 18:39:51 +02:00
libraryelements Revert "Add FolderUID for library elements" (#83776) 2024-03-01 18:16:43 +02:00
librarypanels Revert "Add FolderUID for library elements" (#83776) 2024-03-01 18:16:43 +02:00
licensing Chore: Clean up old navigation (#66287) 2023-04-14 09:43:11 +01:00
live Grafana: Replace magic number with a constant variable in response status (#80132) 2024-02-27 18:39:51 +02:00
login JWT Authentication: Add support for specifying groups in auth.jwt for teamsync (#82175) 2024-02-09 16:35:58 +01:00
loginattempt Chore: Update test database initialization (#81673) 2024-02-09 09:35:39 -05:00
navtree E2C: Add initial empty state (#83232) 2024-02-23 13:18:09 +02:00
ngalert Alerting: Scheduler and registry handle rules by an interface (#84044) 2024-03-11 22:57:38 +02:00
notifications Auth: Fix email verification bypass when using basic authentication (#82914) 2024-02-16 18:54:59 +01:00
oauthtoken Fix: Refresh token when id_token is expired (#79569) 2024-02-05 16:44:25 +01:00
org Chore: Update test database initialization (#81673) 2024-02-09 09:35:39 -05:00
playlist Chore: Update test database initialization (#81673) 2024-02-09 09:35:39 -05:00
plugindashboards Chore: removing folderId from plugindashboard service (#80570) 2024-01-16 11:08:39 +01:00
pluginsintegration Plugins: Tidy config struct (#84168) 2024-03-11 16:28:46 +01:00
preference Chore: Update test database initialization (#81673) 2024-02-09 09:35:39 -05:00
provisioning Alerting: Support for simplified notification settings in rule API (#81011) 2024-02-15 09:45:10 -05:00
publicdashboards Plugins: Refactor plugin config into separate env var and request scoped services (#83261) 2024-02-27 12:38:02 +01:00
query Queries: Fix debug logging of metrics queries (#83877) 2024-03-05 08:27:44 -05:00
queryhistory Query History: Count using SQL, not post query (#82208) 2024-02-20 07:32:40 -06:00
quota Chore: Update test database initialization (#81673) 2024-02-09 09:35:39 -05:00
rendering Rendering: Adds PDF support behind feature toggle (#81811) 2024-02-08 13:09:34 +01:00
screenshot Alerting: Fix bug in screenshot service using incorrect limit (#83786) 2024-03-01 17:17:55 +00:00
search Add MFolderIDsServiceCount to count folderIDs in services pkg (#81237) 2024-01-25 11:10:35 +01:00
searchusers Grafana: Replace magic number with a constant variable in response status (#80132) 2024-02-27 18:39:51 +02:00
searchV2 PanelTitleSearch: Show datasource usage in plugins (#83922) 2024-03-05 22:20:38 +02:00
secrets Chore: Make the secret table name configurable (#83106) 2024-02-20 16:56:43 +01:00
serviceaccounts Serviceaccounts: Add ability to add samename SA for different orgs (#83893) 2024-03-06 09:53:58 +01:00
shorturls Chore: Update test database initialization (#81673) 2024-02-09 09:35:39 -05:00
signingkeys Chore: Update test database initialization (#81673) 2024-02-09 09:35:39 -05:00
sqlstore Serviceaccounts: Add ability to add samename SA for different orgs (#83893) 2024-03-06 09:53:58 +01:00
ssosettings Auth: Add all settings to Azure AD SSO config UI (#83618) 2024-03-04 11:55:59 +01:00
star Chore: Update test database initialization (#81673) 2024-02-09 09:35:39 -05:00
stats Chore: Update test database initialization (#81673) 2024-02-09 09:35:39 -05:00
store Storage: Support listing deleted entities (#84043) 2024-03-11 13:59:54 -04:00
supportbundles UsageStats: Separate context and threads for usage stats (#83963) 2024-03-11 15:18:42 +01:00
tag Chore: Update test database initialization (#81673) 2024-02-09 09:35:39 -05:00
team RBAC: Fix delete team permissions on team delete (#83442) 2024-02-27 12:21:26 +01:00
temp_user Auth: Fix email verification bypass when using basic authentication (#82914) 2024-02-16 18:54:59 +01:00
updatechecker Release: Deprecate latest.json and replace with api call to grafana.com (#80537) 2024-01-16 11:19:32 +00:00
user Auth: Set the default org after User login (#83918) 2024-03-12 09:35:13 +01:00
validations chore: move validations model into the validations service (#61953) 2023-01-23 15:10:14 -05:00