From 5f4eddbe57d0795e068e23cb16e1efa4f2bd092c Mon Sep 17 00:00:00 2001 From: Jelle Besseling Date: Wed, 30 Dec 2020 18:32:57 +0100 Subject: [PATCH] Use email scope --- src/lib/Hydra/Controller/User.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/Hydra/Controller/User.pm b/src/lib/Hydra/Controller/User.pm index 15fcefe6..2881429d 100644 --- a/src/lib/Hydra/Controller/User.pm +++ b/src/lib/Hydra/Controller/User.pm @@ -215,7 +215,7 @@ sub github_redirect :Path('/github-redirect') Args(0) { value => $after, }; - $c->res->redirect("https://github.com/login/oauth/authorize?client_id=$client_id"); + $c->res->redirect("https://github.com/login/oauth/authorize?client_id=$client_id&scope=user:email"); }