{"action":"created","issue":{"url":"https://api.github.com/repos/clems4ever/authelia/issues/84","repository_url":"https://api.github.com/repos/clems4ever/authelia","labels_url":"https://api.github.com/repos/clems4ever/authelia/issues/84/labels{/name}","comments_url":"https://api.github.com/repos/clems4ever/authelia/issues/84/comments","events_url":"https://api.github.com/repos/clems4ever/authelia/issues/84/events","html_url":"https://github.com/clems4ever/authelia/issues/84","id":258312251,"number":84,"title":"Allow group verification","user":{"login":"SerialVelocity","id":422338,"avatar_url":"https://avatars0.githubusercontent.com/u/422338?v=4","gravatar_id":"","url":"https://api.github.com/users/SerialVelocity","html_url":"https://github.com/SerialVelocity","followers_url":"https://api.github.com/users/SerialVelocity/followers","following_url":"https://api.github.com/users/SerialVelocity/following{/other_user}","gists_url":"https://api.github.com/users/SerialVelocity/gists{/gist_id}","starred_url":"https://api.github.com/users/SerialVelocity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SerialVelocity/subscriptions","organizations_url":"https://api.github.com/users/SerialVelocity/orgs","repos_url":"https://api.github.com/users/SerialVelocity/repos","events_url":"https://api.github.com/users/SerialVelocity/events{/privacy}","received_events_url":"https://api.github.com/users/SerialVelocity/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-09-17T15:42:56Z","updated_at":"2017-09-19T19:35:22Z","closed_at":null,"author_association":"NONE","body":"Hey,\r\n\r\nIt would be great if it was possible to verify whether a user was in a group (similar to your /verify endpoint but for groups instead of users).\r\n\r\n#### Use-case\r\nWhen using software such as rancher/traefik/docker-gen, you try and keep all configuration for that service together.\r\n\r\nFor instance, you add a label to your docker container for traefik like:\r\n```\r\ntraefik.frontend.rule=Host:test.traefik.io\r\n```\r\nand that will expose your application on the host `test.traefik.io`.\r\n\r\nCustom labels can be used by docker-gen (and soon traefik will do something similar) to generate blocks to insert into their nginx configuration. One example of this would be adding a label such as `virtual.auth.group: admin` would generate a block to add to nginx such as:\r\n```\r\n        location /auth_verify {\r\n            internal;\r\n            proxy_set_header  X-Original-URI $request_uri;\r\n            proxy_set_header  X-Real-IP $remote_addr;\r\n            proxy_set_header  Host $http_host;\r\n\r\n            proxy_pass        http://authelia/verify?group=admin;\r\n        }\r\n```\r\nand this would make it so only people in the admin group can access the secured endpoints.\r\n\r\nCheers,\r\nBen"},"comment":{"url":"https://api.github.com/repos/clems4ever/authelia/issues/comments/330649912","html_url":"https://github.com/clems4ever/authelia/issues/84#issuecomment-330649912","issue_url":"https://api.github.com/repos/clems4ever/authelia/issues/84","id":330649912,"user":{"login":"clems4ever","id":3193257,"avatar_url":"https://avatars2.githubusercontent.com/u/3193257?v=4","gravatar_id":"","url":"https://api.github.com/users/clems4ever","html_url":"https://github.com/clems4ever","followers_url":"https://api.github.com/users/clems4ever/followers","following_url":"https://api.github.com/users/clems4ever/following{/other_user}","gists_url":"https://api.github.com/users/clems4ever/gists{/gist_id}","starred_url":"https://api.github.com/users/clems4ever/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clems4ever/subscriptions","organizations_url":"https://api.github.com/users/clems4ever/orgs","repos_url":"https://api.github.com/users/clems4ever/repos","events_url":"https://api.github.com/users/clems4ever/events{/privacy}","received_events_url":"https://api.github.com/users/clems4ever/received_events","type":"User","site_admin":false},"created_at":"2017-09-19T19:35:22Z","updated_at":"2017-09-19T19:35:22Z","author_association":"OWNER","body":"Can you please clarify the title and/or split the ticket for treating the issues separately?\r\nThank you very much for the feedback btw. I'd be glad to know if you already use Authelia in any way?"}}
{"actor":{"display_login":"clems4ever"}}