Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

chore(oauthserver): update UI texts (#40511)

Cemal Kılıçd5dc5431c05c
diff --git a/apps/studio/components/interfaces/Auth/OAuthApps/OAuthAppsList.tsx b/apps/studio/components/interfaces/Auth/OAuthApps/OAuthAppsList.tsx
index 219aacc66ec..337b601c72b 100644
--- a/apps/studio/components/interfaces/Auth/OAuthApps/OAuthAppsList.tsx
+++ b/apps/studio/components/interfaces/Auth/OAuthApps/OAuthAppsList.tsx
@@ -293,7 +293,7 @@ export const OAuthAppsList = () => {
>
<p className="text-sm text-foreground-light">
Are you sure you wish to regenerate the client secret for "{selectedApp?.client_name}"?
- All existing sessions will be invalidated. This action cannot be undone.
+ You'll need to update it in all applications that use it. This action cannot be undone.
</p>
</ConfirmationModal>
</>
diff --git a/apps/studio/components/interfaces/Auth/OAuthApps/OAuthServerSettingsForm.tsx b/apps/studio/components/interfaces/Auth/OAuthApps/OAuthServerSettingsForm.tsx
index 9342d5d164e..8270fcb165f 100644
--- a/apps/studio/components/interfaces/Auth/OAuthApps/OAuthServerSettingsForm.tsx
+++ b/apps/studio/components/interfaces/Auth/OAuthApps/OAuthServerSettingsForm.tsx
@@ -223,7 +223,7 @@ export const OAuthServerSettingsForm = () => {
Enable OAuth server functionality for your project to create and manage
OAuth applications.{' '}
<Link
- href="https://supabase.com/docs/guides/auth/oauth/oauth-apps"
+ href="https://supabase.com/docs/guides/auth/oauth-server"
target="_blank"
rel="noreferrer"
className="text-foreground-light underline hover:text-foreground transition"
@@ -285,11 +285,28 @@ export const OAuthServerSettingsForm = () => {
</FormItemLayout>
)}
/>
- <Admonition
- type="tip"
- title="Make sure this path is implemented in your application."
- description={`Preview Authorization URL: ${authConfig?.SITE_URL}${form.watch('OAUTH_SERVER_AUTHORIZATION_PATH') || '/oauth/consent'}`}
- />
+ {(() => {
+ const authorizationUrl = `${authConfig?.SITE_URL}${form.watch('OAUTH_SERVER_AUTHORIZATION_PATH') || '/oauth/consent'}`
+ return (
+ <Admonition
+ type="tip"
+ title="Make sure this path is implemented in your application."
+ description={
+ <>
+ Preview Authorization URL:{' '}
+ <a
+ href={authorizationUrl}
+ target="_blank"
+ rel="noreferrer"
+ className="text-foreground-light underline hover:text-foreground transition"
+ >
+ {authorizationUrl}
+ </a>
+ </>
+ }
+ />
+ )
+ })()}
</CardContent>
<CardContent className="py-6">
<FormField_Shadcn_
@@ -302,9 +319,9 @@ export const OAuthServerSettingsForm = () => {
description={
<>
Enable dynamic OAuth app registration. Apps can be registered
- programmatically via apis.{' '}
+ programmatically via APIs.{' '}
<Link
- href="https://supabase.com/docs/guides/auth/oauth/oauth-apps#dynamic-oauth-apps"
+ href="https://supabase.com/docs/guides/auth/oauth-server/mcp-authentication#dynamic-client-registration"
target="_blank"
rel="noreferrer"
className="text-foreground-light underline hover:text-foreground transition"
diff --git a/apps/studio/data/oauth-server-apps/oauth-server-app-regenerate-secret-mutation.ts b/apps/studio/data/oauth-server-apps/oauth-server-app-regenerate-secret-mutation.ts
index e049ee20e01..3409aad8793 100644
--- a/apps/studio/data/oauth-server-apps/oauth-server-app-regenerate-secret-mutation.ts
+++ b/apps/studio/data/oauth-server-apps/oauth-server-app-regenerate-secret-mutation.ts
@@ -58,7 +58,7 @@ export const useOAuthServerAppRegenerateSecretMutation = ({
},
onError: async (data, variables, context) => {
if (onError === undefined) {
- toast.error(`Failed to regenerate OAuth Server application secret: ${data.message}`)
+ toast.error(`Failed to regenerate OAuth application secret: ${data.message}`)
} else {
onError(data, variables, context)
}
diff --git a/apps/studio/pages/project/[ref]/auth/oauth-apps.tsx b/apps/studio/pages/project/[ref]/auth/oauth-apps.tsx
index 9034ea70138..9bef1ba0308 100644
--- a/apps/studio/pages/project/[ref]/auth/oauth-apps.tsx
+++ b/apps/studio/pages/project/[ref]/auth/oauth-apps.tsx
@@ -11,7 +11,7 @@ const OAuthApps: NextPageWithLayout = () => (
<div className="col-span-12">
<FormHeader
title="OAuth Apps"
- docsUrl="https://supabase.com/docs/guides/auth/oauth/oauth-apps"
+ docsUrl="https://supabase.com/docs/guides/auth/oauth-server"
/>
<OAuthAppsList />
</div>