summaryrefslogtreecommitdiff
path: root/crates/jmap/src/auth/oauth/auth.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/jmap/src/auth/oauth/auth.rs')
-rw-r--r--crates/jmap/src/auth/oauth/auth.rs9
1 files changed, 8 insertions, 1 deletions
diff --git a/crates/jmap/src/auth/oauth/auth.rs b/crates/jmap/src/auth/oauth/auth.rs
index a669b60b..eba15ccc 100644
--- a/crates/jmap/src/auth/oauth/auth.rs
+++ b/crates/jmap/src/auth/oauth/auth.rs
@@ -292,7 +292,14 @@ impl OAuthApiHandler for Server {
"code token".to_string(),
"id_token token".to_string(),
],
- scopes_supported: vec!["openid".to_string(), "offline_access".to_string()],
+ scopes_supported: vec![
+ "openid".to_string(),
+ "offline_access".to_string(),
+ "urn:ietf:params:jmap:core".to_string(),
+ "urn:ietf:params:jmap:mail".to_string(),
+ "urn:ietf:params:jmap:submission".to_string(),
+ "urn:ietf:params:jmap:vacationresponse".to_string(),
+ ],
issuer: base_url,
})
.into_http_response())