feat: support storage OAuth scopes (#20225)

This commit is contained in:
Hieu authored and GitHub committed 2024-01-11 17:06:38 +07:00
1 parent 83285301a1
commit 70463530ba
4 files changed
+18 -4

No files matched your search

@@ -123,6 +123,11 @@ const AuthorizeRequesterDetails = ({
hasReadScope={scopes.includes(OAuthScope.SECRETS_READ)}
hasWriteScope={scopes.includes(OAuthScope.SECRETS_WRITE)}
/>
<ScopeSection
description="access to storage buckets and files."
hasReadScope={scopes.includes(OAuthScope.STORAGE_READ)}
hasWriteScope={scopes.includes(OAuthScope.STORAGE_WRITE)}
/>
</div>
</div>
</div>
@@ -178,6 +178,14 @@ export const ScopesPanel = ({
scopes={scopes}
setScopes={setScopes}
/>
<Scope
title="Storage"
description="Storage buckets and files."
readScopeName={OAuthScope.STORAGE_READ}
writeScopeName={OAuthScope.STORAGE_WRITE}
scopes={scopes}
setScopes={setScopes}
/>
</div>
)
}
+1 -1
View File
@@ -32,7 +32,7 @@
"@stripe/react-stripe-js": "^2.3.1",
"@stripe/stripe-js": "^2.1.11",
"@supabase/auth-helpers-react": "^0.4.2",
"@supabase/shared-types": "0.1.51",
"@supabase/shared-types": "0.1.55",
"@supabase/supabase-js": "^2.38.2",
"@tanstack/react-query": "^4.35.7",
"@tanstack/react-query-devtools": "^4.35.7",
+4 -3
View File
@@ -736,7 +736,7 @@
"@stripe/react-stripe-js": "^2.3.1",
"@stripe/stripe-js": "^2.1.11",
"@supabase/auth-helpers-react": "^0.4.2",
"@supabase/shared-types": "0.1.51",
"@supabase/shared-types": "0.1.55",
"@supabase/supabase-js": "^2.38.2",
"@tanstack/react-query": "^4.35.7",
"@tanstack/react-query-devtools": "^4.35.7",
@@ -10829,8 +10829,9 @@
}
},
"node_modules/@supabase/shared-types": {
"version": "0.1.51",
"license": "Copyright Supabase"
"version": "0.1.55",
"resolved": "https://registry.npmjs.org/@supabase/shared-types/-/shared-types-0.1.55.tgz",
"integrity": "sha512-oHB9AR2Jq6jZvghtxrpd3/UVK7XOVyrTq/Oh1EZ3AQAo3xqK26CxhbJZ70IkQoS5uD0Qcae7Rwbx88S/+g4BzQ=="
},
"node_modules/@supabase/ssr": {
"version": "0.0.10",