You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by mi...@apache.org on 2026/08/17 21:10:40 UTC

(superset) branch sc-auth-scopes-impl created (now ea29d10839b)

This is an automated email from the ASF dual-hosted git repository.

aminghadersohi pushed a change to branch sc-auth-scopes-impl
in repository https://gitbox.apache.org/repos/asf/superset.git


      at ea29d10839b fix(security): support API key copy fallback

This branch includes the following new commits:

     new ea29d10839b fix(security): support API key copy fallback

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(superset) 01/01: fix(security): support API key copy fallback

Posted by mi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

aminghadersohi pushed a commit to branch sc-auth-scopes-impl
in repository https://gitbox.apache.org/repos/asf/superset.git

commit ea29d10839b71cc400b2a9b0abe1f79e1e0e52e1
Author: Amin Ghadersohi <am...@gmail.com>
AuthorDate: Mon Aug 17 21:10:30 2026 +0000

    fix(security): support API key copy fallback
---
 superset-frontend/src/features/apiKeys/ApiKeyCreateModal.tsx | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/superset-frontend/src/features/apiKeys/ApiKeyCreateModal.tsx b/superset-frontend/src/features/apiKeys/ApiKeyCreateModal.tsx
index c3bf0021300..99066e8f078 100644
--- a/superset-frontend/src/features/apiKeys/ApiKeyCreateModal.tsx
+++ b/superset-frontend/src/features/apiKeys/ApiKeyCreateModal.tsx
@@ -30,6 +30,7 @@ import {
   Select,
 } from '@superset-ui/core/components';
 import { useToasts } from 'src/components/MessageToasts/withToasts';
+import copyTextToClipboard from 'src/utils/copy';
 import {
   API_KEY_SCOPE_OPTIONS,
   getApiKeyScopesHelpText,
@@ -94,7 +95,7 @@ export function ApiKeyCreateModal({
       return;
     }
     try {
-      await navigator.clipboard.writeText(createdKey);
+      await copyTextToClipboard(() => Promise.resolve(createdKey));
       setCopied(true);
       if (copyTimerRef.current) {
         clearTimeout(copyTimerRef.current);