feat: with more scopes
All checks were successful
ci/woodpecker/pr/test Pipeline was successful

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
Kasper Juul Hermansen 2023-11-04 17:37:53 +01:00
parent 70915aec65
commit d746ef0dd7
Signed by: kjuulh
GPG Key ID: 57B6E1465221F912

View File

@ -110,6 +110,8 @@ impl OAuthClient for ZitadelOAuthClient {
.authorize_url(CsrfToken::new_random) .authorize_url(CsrfToken::new_random)
.add_scope(Scope::new("identify".to_string())) .add_scope(Scope::new("identify".to_string()))
.add_scope(Scope::new("openid".to_string())) .add_scope(Scope::new("openid".to_string()))
.add_scope(Scope::new("email".to_string()))
.add_scope(Scope::new("profile".to_string()))
.url(); .url();
Ok(auth_url) Ok(auth_url)