From 81942b3b98d82c0868e6af5222323151cfd3d917 Mon Sep 17 00:00:00 2001 From: Wen Sun Date: Fri, 12 Jan 2024 15:02:11 +0900 Subject: [PATCH] chore: updating the default scopes of GitHub SSO (#2746) Updating the default scopes of GitHub SSO The scope of "user" in GitHub OAuth includes permissions to update a user's profile. --- web/src/components/CreateIdentityProviderDialog.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/components/CreateIdentityProviderDialog.tsx b/web/src/components/CreateIdentityProviderDialog.tsx index 3a648891..7c9b54f0 100644 --- a/web/src/components/CreateIdentityProviderDialog.tsx +++ b/web/src/components/CreateIdentityProviderDialog.tsx @@ -21,7 +21,7 @@ const templateList: IdentityProvider[] = [ authUrl: "https://github.com/login/oauth/authorize", tokenUrl: "https://github.com/login/oauth/access_token", userInfoUrl: "https://api.github.com/user", - scopes: ["user"], + scopes: ["read:user"], fieldMapping: { identifier: "login", displayName: "name",