grafana/pkg/api
Leonard Gram 730bedf36f
LDAP Debug: No longer shows incorrectly matching groups based on role (#20018)
* LDAP Debug: No longer shows incorrectly matching groups based on role

Org Role was used as a shortcut to figure out what groups were matching
and which weren't. That lead to too all groups matching a specific role
to show up for a user if that user got that role.

* LDAP Debug: Fixes ordering of matches

The order of groups in the ldap.toml file is important, only the first
match for an organisation will be used. This means we have to iterate
based on the config and stop matching when a match is found.

We might want to think about showing further matches as potential
matches that are shadowed by the first match. That would possibly make
it easier to understand why one match is used instead of another one.

* LDAP Debug: never display more than one match for the same LDAP group/mapping.

* LDAP Debug: show all matches, even if they aren't used

* Update public/app/features/admin/ldap/LdapUserGroups.tsx

Co-Authored-By: gotjosh <josue.abreu@gmail.com>

* Update public/app/features/admin/ldap/LdapUserGroups.tsx

Co-Authored-By: gotjosh <josue.abreu@gmail.com>
2019-11-01 15:42:22 +01:00
..
avatar pkg/api: Check errors (#19657) 2019-10-08 18:57:53 +02:00
dtos pkg/api: Check errors (#19657) 2019-10-08 18:57:53 +02:00
live pkg/api: Check errors (#19657) 2019-10-08 18:57:53 +02:00
pluginproxy Datasource: Add custom headers on alerting queries (#19508) 2019-10-11 14:28:52 +02:00
routing removes unused return object 2018-06-26 09:22:31 +02:00
static pkg: fix codespell issues 2018-04-13 20:31:29 +02:00
admin_provisioning.go Provisioning: Add API endpoint to reload provisioning configs (#16579) 2019-04-25 09:06:44 +02:00
admin_users_test.go Auth: Logout disabled user (#17166) 2019-05-23 15:54:47 +03:00
admin_users.go pkg/util: Check errors (#19832) 2019-10-23 10:40:12 +02:00
admin.go Initial Baby Step to refactoring settings from global vars to instance (#11777) 2018-04-30 16:21:04 +02:00
alerting_test.go API: Restrict anonymous user information access (#18422) 2019-08-12 20:03:48 +02:00
alerting.go API: Restrict anonymous user information access (#18422) 2019-08-12 20:03:48 +02:00
annotations_test.go Annotations: use a single row to represent a region (#17673) 2019-08-16 10:49:30 +02:00
annotations.go Annotations: use a single row to represent a region (#17673) 2019-08-16 10:49:30 +02:00
api.go Licensing service (#19903) 2019-11-01 14:56:12 +01:00
apikey.go pkg/util: Check errors (#19832) 2019-10-23 10:40:12 +02:00
app_routes.go move log package to /infra (#17023) 2019-05-13 08:45:54 +02:00
basic_auth_test.go Re-organize packages and add basic auth test 2018-11-19 13:54:13 -05:00
basic_auth.go Re-organize packages and add basic auth test 2018-11-19 13:54:13 -05:00
common_test.go Fix: Break redirect loop if oauth_auto_login = true and OAuth login fails (#17974) 2019-07-09 09:37:24 +03:00
common.go pkg/api: Check errors (#19657) 2019-10-08 18:57:53 +02:00
dashboard_permission_test.go test: fixed usage of wrap in tests. 2018-07-02 17:13:59 +02:00
dashboard_permission.go permission: generate team avatar url with default 2018-04-04 15:50:45 +02:00
dashboard_snapshot_test.go pkg/api: Check errors (#19657) 2019-10-08 18:57:53 +02:00
dashboard_snapshot.go pkg/util: Check errors (#19832) 2019-10-23 10:40:12 +02:00
dashboard_test.go Allow saving of provisioned dashboards (#19820) 2019-10-31 14:27:31 +01:00
dashboard.go api/dashboard: fix panic on UI save (#20137) 2019-11-01 07:57:03 +01:00
dataproxy_test.go dataproxy should forward a trailing slash to proxy 2018-10-03 12:55:01 +02:00
dataproxy.go Metrics: use consistent naming for exported variables (#18134) 2019-07-16 16:58:46 +02:00
datasources_test.go Return a 404 when deleting a datasource through the API if it doesn't exist and add a test for it to confirm #12313 2018-06-22 21:15:36 -05:00
datasources.go Api: Readonly datasources should not be created via the API (#19006) 2019-09-17 12:29:43 +03:00
folder_permission_test.go test: fixed usage of wrap in tests. 2018-07-02 17:13:59 +02:00
folder_permission.go permissions: return user and team avatar in folder permissions api 2018-04-04 15:51:19 +02:00
folder_test.go Search: Fixes search limits and adds a page parameter (#16458) 2019-04-17 13:07:50 +02:00
folder.go API: Minor fix for nil pointer when trying to log error during creating new dashboard via the API (#18003) 2019-07-11 09:45:29 +03:00
frontendsettings.go Licensing service (#19903) 2019-11-01 14:56:12 +01:00
grafana_com_proxy.go http: remove dualstack since its deprecated (#16940) 2019-05-08 10:37:48 +02:00
http_server_test.go Re-organize packages and add basic auth test 2018-11-19 13:54:13 -05:00
http_server.go Licensing service (#19903) 2019-11-01 14:56:12 +01:00
index.go Licensing service (#19903) 2019-11-01 14:56:12 +01:00
ldap_debug_test.go LDAP Debug: No longer shows incorrectly matching groups based on role (#20018) 2019-11-01 15:42:22 +01:00
ldap_debug.go LDAP Debug: No longer shows incorrectly matching groups based on role (#20018) 2019-11-01 15:42:22 +01:00
login_oauth.go pkg/api: Check errors (#19657) 2019-10-08 18:57:53 +02:00
login_test.go Licensing service (#19903) 2019-11-01 14:56:12 +01:00
login.go Licensing service (#19903) 2019-11-01 14:56:12 +01:00
metrics.go GEL: include the expression count in the request (#20114) 2019-10-31 16:22:00 -07:00
org_invite.go pkg/util: Check errors (#19832) 2019-10-23 10:40:12 +02:00
org_users.go API: Restrict anonymous user information access (#18422) 2019-08-12 20:03:48 +02:00
org.go Metrics: use consistent naming for exported variables (#18134) 2019-07-16 16:58:46 +02:00
password.go pkg/util: Check errors (#19832) 2019-10-23 10:40:12 +02:00
playlist_play.go move log package to /infra (#17023) 2019-05-13 08:45:54 +02:00
playlist.go Codestyle: Fix some goconst issues (#17530) 2019-06-12 07:27:47 +02:00
plugins.go AddDataSource: Updated page design & categories (#16971) 2019-05-09 11:45:39 +02:00
preferences.go feat: team preferences 2018-11-12 20:01:53 +01:00
quota.go Make golint happier 2018-03-22 22:38:44 +01:00
render.go pkg/util/{ip.go,url.go}: Fix some golint issues 2019-01-28 22:29:20 +01:00
search.go Metrics: use consistent naming for exported variables (#18134) 2019-07-16 16:58:46 +02:00
signup.go pkg/util: Check errors (#19832) 2019-10-23 10:40:12 +02:00
stars.go Make golint happier 2018-03-22 22:38:44 +01:00
team_members.go Licensing service (#19903) 2019-11-01 14:56:12 +01:00
team_test.go API: Minor fix for team creation endpoint when using API key (#18252) 2019-08-08 11:27:47 +03:00
team.go API: Minor fix for team creation endpoint when using API key (#18252) 2019-08-08 11:27:47 +03:00
user_test.go API: Add createdAt and updatedAt to api/users/lookup (#19496) 2019-09-30 20:54:09 +01:00
user_token_test.go Api: Fix auth tokens returning wrong seenAt value (#17980) 2019-07-08 14:30:02 +02:00
user_token.go Api: Fix auth tokens returning wrong seenAt value (#17980) 2019-07-08 14:30:02 +02:00
user.go pkg/util: Check errors (#19832) 2019-10-23 10:40:12 +02:00