diff --git a/gui/src/components/api.js b/gui/src/components/api.js index 4f5bda7abe17755c6ef700b8a492b4921eeac2d2..5f2d12247b97a52c01d85683ab26c4b609968371 100644 --- a/gui/src/components/api.js +++ b/gui/src/components/api.js @@ -171,7 +171,17 @@ class Api { }) }) } else { - return this._swaggerClient + const self = this + return new Promise((resolve, reject) => { + self._swaggerClient + .then(swaggerClient => { + swaggerClient.authorizations = {} + resolve(swaggerClient) + }) + .catch(() => { + reject(new ApiError()) + }) + }) } } diff --git a/nomad/app/api/auth.py b/nomad/app/api/auth.py index e6c0d30bbc6316a938deaf8d4664e8ac70c23653..7d2d7aa6a2778fb8d2903bfb2f46faed7f524c35 100644 --- a/nomad/app/api/auth.py +++ b/nomad/app/api/auth.py @@ -143,7 +143,7 @@ def authenticate( abort(401, 'Invalid token') elif 'token' in request.args: - abort(401, 'Queram param token not supported for this endpoint') + abort(401, 'Query param token not supported for this endpoint') else: error = infrastructure.keycloak.authorize_flask(basic=basic) diff --git a/nomad/config.py b/nomad/config.py index f49811e2fcdaba666e50d8a841cfbf0ed4db028f..d6577a839a663b7e209897b65973fa66d4eb62c5 100644 --- a/nomad/config.py +++ b/nomad/config.py @@ -195,7 +195,7 @@ datacite = NomadConfig( password='*' ) -version = '0.7.1' +version = '0.7.2' commit = gitinfo.commit release = 'devel' domain = 'DFT' diff --git a/ops/helm/nomad/Chart.yaml b/ops/helm/nomad/Chart.yaml index 7d77e18c7a3c4d4c91dd4a9867174c62956e67a5..7db9a0cea255977804a42c10b5f5fe3391bcaf48 100644 --- a/ops/helm/nomad/Chart.yaml +++ b/ops/helm/nomad/Chart.yaml @@ -1,5 +1,5 @@ apiVersion: v1 -appVersion: "0.7.1" +appVersion: "0.7.2" description: A Helm chart for Kubernetes that only runs nomad services and uses externally hosted databases. name: nomad -version: 0.7.1 +version: 0.7.2 diff --git a/setup.py b/setup.py index 97138c02c91743fc1f003b13bce150bbcd5e2c94..02a3efa988081c8c709eeb76e855ca32e65a7137 100644 --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ reqs = [str(ir.req) for ir in install_reqs if 'sphinxcontrib.httpdomain' not in setup( name='nomad', - version='0.7.1', + version='0.7.2', description='The nomad@FAIRDI infrastructure python package', py_modules=['nomad'], install_requires=reqs,