Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions apps/adk-ui/src/contexts/App/runtime-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ export const runtimeConfig: RuntimeConfig = {
defaults: contextTokenPermissionsDefaults,
}),
isAuthEnabled: process.env.OIDC_ENABLED !== 'false',
isLocalDevAutoLogin:
process.env.OIDC_ENABLED !== 'false' && (process.env.OIDC_PROVIDER_ISSUER?.includes('localtest.me') ?? false),
isLocalDevAutoLogin: process.env.LOCAL_DEV_AUTO_LOGIN === 'true',
appName: process.env.APP_NAME || 'Kagenti ADK',
};
3 changes: 3 additions & 0 deletions apps/adk-ui/template.env
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ OIDC_PROVIDER_ISSUER=http://keycloak.localtest.me:8080/realms/adk
# defaults to OIDC_PROVIDER_ISSUER if not set — only needed when internal and public URLs differ (e.g. dev mode)
OIDC_PROVIDER_EXTERNAL_ISSUER=http://keycloak.localtest.me:8080/realms/adk

# Enable auto-login for local dev (default: false)
LOCAL_DEV_AUTO_LOGIN=false

# next-auth random string
NEXTAUTH_SECRET=
NEXTAUTH_URL="http://localhost:3000"
2 changes: 2 additions & 0 deletions helm/templates/ui/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ spec:
{{- toYaml . | nindent 12 }}
{{- end }}
env:
- name: LOCAL_DEV_AUTO_LOGIN
value: {{ .Values.features.uiLocalSetup | quote }}
- name: API_URL
value: "http://adk-server-svc:{{.Values.server.service.port}}"
- name: APP_NAME
Expand Down
Loading