From d746ef0dd76a24d6353344e9279cc3cbc8582c81 Mon Sep 17 00:00:00 2001 From: kjuulh Date: Sat, 4 Nov 2023 17:37:53 +0100 Subject: [PATCH] feat: with more scopes Signed-off-by: kjuulh --- crates/nefarious-login/src/oauth/zitadel.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/nefarious-login/src/oauth/zitadel.rs b/crates/nefarious-login/src/oauth/zitadel.rs index 0226eee..d889494 100644 --- a/crates/nefarious-login/src/oauth/zitadel.rs +++ b/crates/nefarious-login/src/oauth/zitadel.rs @@ -110,6 +110,8 @@ impl OAuthClient for ZitadelOAuthClient { .authorize_url(CsrfToken::new_random) .add_scope(Scope::new("identify".to_string())) .add_scope(Scope::new("openid".to_string())) + .add_scope(Scope::new("email".to_string())) + .add_scope(Scope::new("profile".to_string())) .url(); Ok(auth_url)