feat: expose analytics OAuth scopes (#32543)

feat: expose analytics Oauth scopes
This commit is contained in:
Hieu authored and GitHub committed 2025-01-03 15:14:46 +07:00
1 parent aac7ae8279
commit a069a1e836
2 files changed
+13

No files matched your search

@@ -78,6 +78,11 @@ const AuthorizeRequesterDetails = ({
<span className="text-amber-900">selected organization and all of its projects.</span>
</p>
<div className="pt-2">
<ScopeSection
description="access to analytics logs."
hasReadScope={scopes.includes(OAuthScope.ANALYTICS_READ)}
hasWriteScope={scopes.includes(OAuthScope.ANALYTICS_WRITE)}
/>
<ScopeSection
description="access to auth configurations and SSO providers."
hasReadScope={scopes.includes(OAuthScope.AUTH_READ)}
@@ -106,6 +106,14 @@ export const ScopesPanel = ({
}) => {
return (
<div className="-space-y-px">
<Scope
title="Analytics"
description="Analytics logs."
readScopeName={OAuthScope.ANALYTICS_READ}
writeScopeName={OAuthScope.ANALYTICS_WRITE}
scopes={scopes}
setScopes={setScopes}
/>
<Scope
title="Auth"
description="Auth configurations and SSO providers."