Commit 47168f13 authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Fixed failed auth after implicit logout #224.

parent 72843a27
Pipeline #65861 failed with stages
in 7 minutes and 59 seconds
...@@ -171,7 +171,17 @@ class Api { ...@@ -171,7 +171,17 @@ class Api {
}) })
}) })
} else { } else {
return this._swaggerClient const self = this
return new Promise((resolve, reject) => {
self._swaggerClient
.then(swaggerClient => {
swaggerClient.authorizations = {}
resolve(swaggerClient)
})
.catch(() => {
reject(new ApiError())
})
})
} }
} }
......
...@@ -143,7 +143,7 @@ def authenticate( ...@@ -143,7 +143,7 @@ def authenticate(
abort(401, 'Invalid token') abort(401, 'Invalid token')
elif 'token' in request.args: 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: else:
error = infrastructure.keycloak.authorize_flask(basic=basic) error = infrastructure.keycloak.authorize_flask(basic=basic)
......
...@@ -195,7 +195,7 @@ datacite = NomadConfig( ...@@ -195,7 +195,7 @@ datacite = NomadConfig(
password='*' password='*'
) )
version = '0.7.1' version = '0.7.2'
commit = gitinfo.commit commit = gitinfo.commit
release = 'devel' release = 'devel'
domain = 'DFT' domain = 'DFT'
......
apiVersion: v1 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. description: A Helm chart for Kubernetes that only runs nomad services and uses externally hosted databases.
name: nomad name: nomad
version: 0.7.1 version: 0.7.2
...@@ -12,7 +12,7 @@ reqs = [str(ir.req) for ir in install_reqs if 'sphinxcontrib.httpdomain' not in ...@@ -12,7 +12,7 @@ reqs = [str(ir.req) for ir in install_reqs if 'sphinxcontrib.httpdomain' not in
setup( setup(
name='nomad', name='nomad',
version='0.7.1', version='0.7.2',
description='The nomad@FAIRDI infrastructure python package', description='The nomad@FAIRDI infrastructure python package',
py_modules=['nomad'], py_modules=['nomad'],
install_requires=reqs, install_requires=reqs,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment