diff --git a/gui/src/components/conftest.spec.js b/gui/src/components/conftest.spec.js index 2039d500ff65e085d867fb2930eac468904bc5c6..e7c0e2a77f492d8e13aaf2c068c87c497a2d5c2a 100644 --- a/gui/src/components/conftest.spec.js +++ b/gui/src/components/conftest.spec.js @@ -508,7 +508,7 @@ async function mockKeycloak(username, password) { const getRefreshToken = (username, password) => { const command = `curl -s -X POST ${keycloakURL} \\ -H 'cache-control: no-cache' -H 'content-type: application/x-www-form-urlencoded' \\ - -d 'username=${username}&grant_type=password&password=${password}&client_id=nomad_gui_dev'` + -d 'username=${username}&grant_type=password&password=${password}&client_id=nomad_public'` let response = require('child_process').execSync(command).toString() response = JSON.parse(response) if (response.error !== undefined) throw Error(response.error) @@ -522,7 +522,7 @@ async function mockKeycloak(username, password) { try { const command = `curl -s -X POST ${keycloakURL} \\ -H 'cache-control: no-cache' -H 'content-type: application/x-www-form-urlencoded' \\ - -d 'refresh_token=${refresh_token}&grant_type=refresh_token&client_id=nomad_gui_dev'` + -d 'refresh_token=${refresh_token}&grant_type=refresh_token&client_id=nomad_public'` let response = require('child_process').execSync(command).toString() response = JSON.parse(response) if (response.error !== undefined) return {} diff --git a/nomad/config/models/ui.py b/nomad/config/models/ui.py index 10f8395a9d9ae49820da0570a537dd4361407d29..953e5848914390bf44fc1d14084d46628b851a5f 100644 --- a/nomad/config/models/ui.py +++ b/nomad/config/models/ui.py @@ -395,10 +395,7 @@ class RowActionNorth(RowAction): RowActionsItemType = Annotated[ - Union[ - RowActionNorth, - RowActionURL, - ], + RowActionNorth | RowActionURL, Field(discriminator='type'), ]