{"action":"created","issue":{"url":"https://api.github.com/repos/grafana/grafana/issues/8816","repository_url":"https://api.github.com/repos/grafana/grafana","labels_url":"https://api.github.com/repos/grafana/grafana/issues/8816/labels{/name}","comments_url":"https://api.github.com/repos/grafana/grafana/issues/8816/comments","events_url":"https://api.github.com/repos/grafana/grafana/issues/8816/events","html_url":"https://github.com/grafana/grafana/issues/8816","id":241541964,"number":8816,"title":"[Feature request] Add group/role header in auth.proxy","user":{"login":"staticmukesh","id":1879813,"avatar_url":"https://avatars3.githubusercontent.com/u/1879813?v=4","gravatar_id":"","url":"https://api.github.com/users/staticmukesh","html_url":"https://github.com/staticmukesh","followers_url":"https://api.github.com/users/staticmukesh/followers","following_url":"https://api.github.com/users/staticmukesh/following{/other_user}","gists_url":"https://api.github.com/users/staticmukesh/gists{/gist_id}","starred_url":"https://api.github.com/users/staticmukesh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/staticmukesh/subscriptions","organizations_url":"https://api.github.com/users/staticmukesh/orgs","repos_url":"https://api.github.com/users/staticmukesh/repos","events_url":"https://api.github.com/users/staticmukesh/events{/privacy}","received_events_url":"https://api.github.com/users/staticmukesh/received_events","type":"User","site_admin":false},"labels":[{"id":174917589,"url":"https://api.github.com/repos/grafana/grafana/labels/comp:%20backend/auth","name":"comp: backend/auth","color":"c7def8","default":false},{"id":81198721,"url":"https://api.github.com/repos/grafana/grafana/labels/type:%20feature%20request","name":"type: feature request","color":"dddddd","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-07-09T18:04:34Z","updated_at":"2018-03-06T14:53:51Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Please include this information:\r\n- What Grafana version are you using?\r\n   **v4.4.0-pre1**\r\n- What OS are you running grafana on?\r\n   **Ubuntu 16.04**\r\n- What do you want?\r\n   Currently `auth.proxy` does the authentication and sends the username/email in `X-WEBAUTH-USER` header, and through `auto_assign_org_role`, we can assign only specific role to all users. There should be a functionality of providing user's role while creating the user. I checked ldap and auth.proxy integration to do groups/role based authorization, but it requires ldap server connectivity from grafana. \r\nMany authentication proxy systems authenticates the user (sometimes ldap) and sends the user details like username and groups information to upstream components. We can have groups role mapping (like ldap one) and groups information in header to map user role accordingly.\r\n\r\nThanks.\r\n \r\n"},"comment":{"url":"https://api.github.com/repos/grafana/grafana/issues/comments/370806906","html_url":"https://github.com/grafana/grafana/issues/8816#issuecomment-370806906","issue_url":"https://api.github.com/repos/grafana/grafana/issues/8816","id":370806906,"user":{"login":"chrim5","id":9885043,"avatar_url":"https://avatars0.githubusercontent.com/u/9885043?v=4","gravatar_id":"","url":"https://api.github.com/users/chrim5","html_url":"https://github.com/chrim5","followers_url":"https://api.github.com/users/chrim5/followers","following_url":"https://api.github.com/users/chrim5/following{/other_user}","gists_url":"https://api.github.com/users/chrim5/gists{/gist_id}","starred_url":"https://api.github.com/users/chrim5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrim5/subscriptions","organizations_url":"https://api.github.com/users/chrim5/orgs","repos_url":"https://api.github.com/users/chrim5/repos","events_url":"https://api.github.com/users/chrim5/events{/privacy}","received_events_url":"https://api.github.com/users/chrim5/received_events","type":"User","site_admin":false},"created_at":"2018-03-06T14:53:51Z","updated_at":"2018-03-06T14:53:51Z","author_association":"NONE","body":"+1 for this feature request. "}}
{"actor":{"display_login":"chrim5"}}