Skip to content
Snippets Groups Projects
Verified Commit 9fd9fa48 authored by Martin Weise's avatar Martin Weise
Browse files

Push correct urls

parent 74bcebef
No related branches found
No related tags found
1 merge request!374Bumped version of DBRepo
...@@ -305,7 +305,6 @@ services: ...@@ -305,7 +305,6 @@ services:
NUXT_PUBLIC_API_CLIENT: "${BASE_URL:-http://localhost}" NUXT_PUBLIC_API_CLIENT: "${BASE_URL:-http://localhost}"
NUXT_PUBLIC_API_SERVER: "${BASE_URL:-http://gateway-service}" NUXT_PUBLIC_API_SERVER: "${BASE_URL:-http://gateway-service}"
NUXT_PUBLIC_UPLOAD_CLIENT: "${BASE_URL:-http://localhost}/api/upload/files" NUXT_PUBLIC_UPLOAD_CLIENT: "${BASE_URL:-http://localhost}/api/upload/files"
NUXT_OIDC_PROVIDERS_KEYCLOAK_BASE_URL: "${BASE_URL:-http://localhost:8080}/realms/dbrepo"
NUXT_OIDC_PROVIDERS_KEYCLOAK_CLIENT_ID: "${AUTH_SERVICE_CLIENT:-dbrepo-client}" NUXT_OIDC_PROVIDERS_KEYCLOAK_CLIENT_ID: "${AUTH_SERVICE_CLIENT:-dbrepo-client}"
NUXT_OIDC_PROVIDERS_KEYCLOAK_CLIENT_SECRET: "${AUTH_SERVICE_CLIENT:-MUwRc7yfXSJwX8AdRMWaQC3Nep1VjwgG}" NUXT_OIDC_PROVIDERS_KEYCLOAK_CLIENT_SECRET: "${AUTH_SERVICE_CLIENT:-MUwRc7yfXSJwX8AdRMWaQC3Nep1VjwgG}"
NUXT_OIDC_PROVIDERS_KEYCLOAK_REDIRECT_URI: "${BASE_URL:-http://localhost}/auth/keycloak/callback" NUXT_OIDC_PROVIDERS_KEYCLOAK_REDIRECT_URI: "${BASE_URL:-http://localhost}/auth/keycloak/callback"
......
...@@ -88,10 +88,6 @@ which is imported into Keycloak on startup. ...@@ -88,10 +88,6 @@ which is imported into Keycloak on startup.
## Limitations ## Limitations
* No support for sending e-mails through Keycloak by default.
* No support for temporary passwords.
* No support for multi-factor authentication.
!!! question "Do you miss functionality? Do these limitations affect you?" !!! question "Do you miss functionality? Do these limitations affect you?"
We strongly encourage you to help us implement it as we are welcoming contributors to open-source software and get We strongly encourage you to help us implement it as we are welcoming contributors to open-source software and get
......
...@@ -101,6 +101,7 @@ See the [API Overview](..) page for detailed examples. ...@@ -101,6 +101,7 @@ See the [API Overview](..) page for detailed examples.
## Limitations ## Limitations
* Changing the OIDC provider URL requires to build the UI from scratch.
* When developing locally, the `axios` module does not parse custom headers (such as `X-Count`, `X-Headers`) and/or * When developing locally, the `axios` module does not parse custom headers (such as `X-Count`, `X-Headers`) and/or
blocks CORS requests wrongfully. blocks CORS requests wrongfully.
......
...@@ -132,7 +132,7 @@ metricdb: ...@@ -132,7 +132,7 @@ metricdb:
ui: ui:
enabled: true enabled: true
image: image:
name: registry.datalab.tuwien.ac.at/dbrepo/ui:1.6.3rc0 name: registry.datalab.tuwien.ac.at/dbrepo/ui:1.6.3rc3-datalab-dev
public: public:
api: api:
client: https://s155.datalab.tuwien.ac.at client: https://s155.datalab.tuwien.ac.at
......
...@@ -173,6 +173,7 @@ useServerHead({ ...@@ -173,6 +173,7 @@ useServerHead({
import JumboBox from '@/components/JumboBox.vue' import JumboBox from '@/components/JumboBox.vue'
import { useCacheStore } from '@/stores/cache.js' import { useCacheStore } from '@/stores/cache.js'
import { errorCodeKey, makeError } from '@/utils' import { errorCodeKey, makeError } from '@/utils'
import {useNuxtApp} from "#app";
export default { export default {
components: { components: {
......
...@@ -110,22 +110,25 @@ export default defineNuxtConfig({ ...@@ -110,22 +110,25 @@ export default defineNuxtConfig({
}, },
oidc: { oidc: {
defaultProvider: 'keycloak',
providers: { providers: {
keycloak: { keycloak: {
audience: 'account', clientId: '',
baseUrl: 'http://localhost/realms/dbrepo',
clientId: 'dbrepo-client',
clientSecret: '', // inject on runtime clientSecret: '', // inject on runtime
authorizationUrl: '',
userInfoUrl: '',
tokenUrl: '',
logoutUrl: '',
scope: ['openid', 'roles'], scope: ['openid', 'roles'],
optionalClaims: ['realm_access'], optionalClaims: ['realm_access'],
redirectUri: 'http://localhost/auth/keycloak/callback', redirectUri: '',
userNameClaim: 'preferred_username',
exposeAccessToken: true, exposeAccessToken: true,
logoutRedirectUri: 'http://localhost', logoutRedirectUri: '',
}, },
}, },
middleware: { middleware: {
globalMiddlewareEnabled: false globalMiddlewareEnabled: false,
customLoginPage: false
}, },
}, },
......
...@@ -335,11 +335,14 @@ services: ...@@ -335,11 +335,14 @@ services:
NUXT_PUBLIC_API_CLIENT: "${BASE_URL:-http://localhost}" NUXT_PUBLIC_API_CLIENT: "${BASE_URL:-http://localhost}"
NUXT_PUBLIC_API_SERVER: "${BASE_URL:-http://gateway-service}" NUXT_PUBLIC_API_SERVER: "${BASE_URL:-http://gateway-service}"
NUXT_PUBLIC_UPLOAD_CLIENT: "${BASE_URL:-http://localhost}/api/upload/files" NUXT_PUBLIC_UPLOAD_CLIENT: "${BASE_URL:-http://localhost}/api/upload/files"
NUXT_OIDC_PROVIDERS_KEYCLOAK_BASE_URL: "${BASE_URL:-http://localhost}/realms/dbrepo" NUXT_OIDC_PROVIDERS_KEYCLOAK_AUTHORIZATION_URL: "${BASE_URL:-http://localhost}/realms/dbrepo/protocol/openid-connect/auth"
NUXT_OIDC_PROVIDERS_KEYCLOAK_CLIENT_ID: "${AUTH_SERVICE_CLIENT:-dbrepo-client}" NUXT_OIDC_PROVIDERS_KEYCLOAK_CLIENT_ID: "${AUTH_SERVICE_CLIENT:-dbrepo-client}"
NUXT_OIDC_PROVIDERS_KEYCLOAK_CLIENT_SECRET: "${AUTH_SERVICE_CLIENT:-MUwRc7yfXSJwX8AdRMWaQC3Nep1VjwgG}" NUXT_OIDC_PROVIDERS_KEYCLOAK_CLIENT_SECRET: "${AUTH_SERVICE_CLIENT:-MUwRc7yfXSJwX8AdRMWaQC3Nep1VjwgG}"
NUXT_OIDC_PROVIDERS_KEYCLOAK_REDIRECT_URI: "${BASE_URL:-http://localhost}/auth/keycloak/callback"
NUXT_OIDC_PROVIDERS_KEYCLOAK_LOGOUT_REDIRECT_URI: "${BASE_URL:-http://localhost}" NUXT_OIDC_PROVIDERS_KEYCLOAK_LOGOUT_REDIRECT_URI: "${BASE_URL:-http://localhost}"
NUXT_OIDC_PROVIDERS_KEYCLOAK_LOGOUT_URL: "${BASE_URL:-http://localhost}/realms/dbrepo/protocol/openid-connect/logout"
NUXT_OIDC_PROVIDERS_KEYCLOAK_REDIRECT_URI: "${BASE_URL:-http://localhost}/auth/keycloak/callback"
NUXT_OIDC_PROVIDERS_KEYCLOAK_TOKEN_URL: "${BASE_URL:-http://localhost}/realms/dbrepo/protocol/openid-connect/token"
NUXT_OIDC_PROVIDERS_KEYCLOAK_USER_INFO_URL: "${BASE_URL:-http://localhost}/realms/dbrepo/protocol/openid-connect/userinfo"
depends_on: depends_on:
dbrepo-search-service: dbrepo-search-service:
condition: service_healthy condition: service_healthy
......
...@@ -22,9 +22,12 @@ stringData: ...@@ -22,9 +22,12 @@ stringData:
NUXT_PUBLIC_PID_DEFAULT_PUBLISHER: "{{ .Values.ui.public.pid.default.publisher }}" NUXT_PUBLIC_PID_DEFAULT_PUBLISHER: "{{ .Values.ui.public.pid.default.publisher }}"
NUXT_PUBLIC_UPLOAD_CLIENT: "{{ .Values.ui.public.upload.client | default $uploadEndpoint }}" NUXT_PUBLIC_UPLOAD_CLIENT: "{{ .Values.ui.public.upload.client | default $uploadEndpoint }}"
NUXT_PUBLIC_BROKER_CONNECTIONS: "{{ include "dbrepo.broker.connections" . }}" NUXT_PUBLIC_BROKER_CONNECTIONS: "{{ include "dbrepo.broker.connections" . }}"
NUXT_OIDC_PROVIDERS_KEYCLOAK_BASE_URL: "{{ .Values.gateway }}/realms/dbrepo" NUXT_OIDC_PROVIDERS_KEYCLOAK_AUTHORIZATION_URL: "{{ .Values.gateway }}/realms/dbrepo/protocol/openid-connect/auth"
NUXT_OIDC_PROVIDERS_KEYCLOAK_CLIENT_ID: "{{ .Values.authservice.client.id }}" NUXT_OIDC_PROVIDERS_KEYCLOAK_CLIENT_ID: "{{ .Values.authservice.client.id }}"
NUXT_OIDC_PROVIDERS_KEYCLOAK_CLIENT_SECRET: "{{ .Values.authservice.client.secret }}" NUXT_OIDC_PROVIDERS_KEYCLOAK_CLIENT_SECRET: "{{ .Values.authservice.client.secret }}"
NUXT_OIDC_PROVIDERS_KEYCLOAK_REDIRECT_URI: "{{ .Values.gateway }}/auth/keycloak/callback"
NUXT_OIDC_PROVIDERS_KEYCLOAK_LOGOUT_REDIRECT_URI: "{{ .Values.gateway }}" NUXT_OIDC_PROVIDERS_KEYCLOAK_LOGOUT_REDIRECT_URI: "{{ .Values.gateway }}"
NUXT_OIDC_PROVIDERS_KEYCLOAK_LOGOUT_URL: "{{ .Values.gateway }}/realms/dbrepo/protocol/openid-connect/logout"
NUXT_OIDC_PROVIDERS_KEYCLOAK_REDIRECT_URI: "{{ .Values.gateway }}/auth/keycloak/callback"
NUXT_OIDC_PROVIDERS_KEYCLOAK_TOKEN_URL: "{{ .Values.gateway }}/realms/dbrepo/protocol/openid-connect/token"
NUXT_OIDC_PROVIDERS_KEYCLOAK_USER_INFO_URL: "{{ .Values.gateway }}/realms/dbrepo/protocol/openid-connect/userinfo"
{{- end }} {{- end }}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment