Skip to content

SmythOS Studio: Open-Source Visual AI Agent Builder and deployable runtime stack from SmythOS. Start with an intuitive drag-and-drop workspace, extend with custom code, and deploy your agents anywhere — local, cloud, or edge — with full governance and control.

Fix: 86ev7m39d : Inconsistent placeholder text in OAuth OIDC (Agent Settings) (#292)

samme-abdul6a371bbbcb48
diff --git a/packages/app/src/react/features/agent-settings/components/Security/AuthWidget.tsx b/packages/app/src/react/features/agent-settings/components/Security/AuthWidget.tsx
index f9e38d7e..f06001c5 100644
--- a/packages/app/src/react/features/agent-settings/components/Security/AuthWidget.tsx
+++ b/packages/app/src/react/features/agent-settings/components/Security/AuthWidget.tsx
@@ -362,11 +362,11 @@ const AuthWidget = ({ isWriteAccess }: Props) => {
Token <span className="text-red-500">*</span>
</label>
<div className="relative">
- <input
- id="bearer-token"
- type={showBearerToken ? 'text' : 'password'}
- placeholder="MHjp4...Random Token"
- value={bearerConfig.token}
+ <input
+ id="bearer-token"
+ type={showBearerToken ? 'text' : 'password'}
+ placeholder="Enter your bearer token"
+ value={bearerConfig.token}
onChange={(e) => setBearerConfig((prev) => ({ ...prev, token: e.target.value }))}
className={`w-full p-2 text-sm border rounded-md bg-white ${
validationErrors.bearerToken
@@ -399,7 +399,7 @@ const AuthWidget = ({ isWriteAccess }: Props) => {
<input
id="bearer-verification"
type="text"
- placeholder="...Verification Token"
+ placeholder="Enter verification token"
value={bearerConfig.BearerOpenAIVerificationToken}
onChange={(e) =>
setBearerConfig((prev) => ({
@@ -426,7 +426,7 @@ const AuthWidget = ({ isWriteAccess }: Props) => {
<input
id="oidc-endpoint"
type="text"
- placeholder="https://auth.server.com/oidc"
+ placeholder="Enter OIDC configuration URL"
value={oauthConfig.OIDCConfigURL}
onChange={(e) =>
setOauthConfig((prev) => ({ ...prev, OIDCConfigURL: e.target.value }))
@@ -450,7 +450,7 @@ const AuthWidget = ({ isWriteAccess }: Props) => {
<input
id="client-id"
type="text"
- placeholder="ID..."
+ placeholder="Enter your client ID"
value={oauthConfig.clientID}
onChange={(e) => setOauthConfig((prev) => ({ ...prev, clientID: e.target.value }))}
className={`w-full p-2 text-sm border rounded-md bg-white ${
@@ -475,7 +475,7 @@ const AuthWidget = ({ isWriteAccess }: Props) => {
<input
id="client-secret"
type={showClientSecret ? 'text' : 'password'}
- placeholder="Secret..."
+ placeholder="Enter your client secret"
value={oauthConfig.clientSecret}
onChange={(e) =>
setOauthConfig((prev) => ({ ...prev, clientSecret: e.target.value }))
@@ -510,7 +510,7 @@ const AuthWidget = ({ isWriteAccess }: Props) => {
<input
id="allowed-emails"
type="text"
- placeholder="Comma separated emails or domains list."
+ placeholder="Enter comma separated emails or domains"
value={oauthConfig.allowedEmails}
onChange={(e) =>
setOauthConfig((prev) => ({ ...prev, allowedEmails: e.target.value }))
@@ -530,7 +530,7 @@ const AuthWidget = ({ isWriteAccess }: Props) => {
<input
id="verification-token"
type="text"
- placeholder="Verification Token..."
+ placeholder="Enter verification token"
value={oauthConfig.OIDCOpenAIVerificationToken}
onChange={(e) =>
setOauthConfig((prev) => ({
diff --git a/packages/app/views/pages/partials/studio/left-sidebar-auth.ejs b/packages/app/views/pages/partials/studio/left-sidebar-auth.ejs
index 4f7cd80d..5864d061 100644
--- a/packages/app/views/pages/partials/studio/left-sidebar-auth.ejs
+++ b/packages/app/views/pages/partials/studio/left-sidebar-auth.ejs
@@ -26,7 +26,7 @@
<input
type="password"
id="auth-bearer-token"
- placeholder="MHjp4...Random Token"
+ placeholder="Enter your bearer token"
class="mb-3 bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-md focus:ring-blue-500 focus:border-blue-500 block w-full px-3 py-2 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500 ph-no-capture"
required
value=""
@@ -40,7 +40,7 @@
<input
type="text"
id="auth-bearer-openai-verification"
- placeholder="...Verification Token"
+ placeholder="Enter verification token"
class="mb-3 bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full px-3 py-2 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500 ph-no-capture"
required
value=""
@@ -57,7 +57,7 @@
<input
type="text"
id="auth-oidc-config-url"
- placeholder="https://auth.server.com/oicd/.well-known/openid-configuration"
+ placeholder="Enter OIDC configuration URL"
class="mb-1 bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-md focus:ring-blue-500 focus:border-blue-500 block w-full px-3 py-2 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"
required
value=""
@@ -76,7 +76,7 @@
<input
type="text"
id="auth-id"
- placeholder="ID..."
+ placeholder="Enter your client ID"
class="mb-2 bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full px-3 py-2 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"
required
value=""
@@ -92,7 +92,7 @@
:type="passwordVisible ? 'text' : 'password'"
x-model="password"
id="auth-secret"
- placeholder="Secret..."
+ placeholder="Enter your client secret"
class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full px-3 pl-2 pr-9 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"
required
/>
@@ -150,7 +150,7 @@
<input
type="text"
id="auth-oidc-openai-verification"
- placeholder="...Verification Token"
+ placeholder="Enter verification token"
class="mb-3 bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-md focus:ring-blue-500 focus:border-blue-500 block w-full px-3 py-2 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"
required
value=""