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 {
})
})
} 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(
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)
......
......@@ -195,7 +195,7 @@ datacite = NomadConfig(
password='*'
)
version = '0.7.1'
version = '0.7.2'
commit = gitinfo.commit
release = 'devel'
domain = 'DFT'
......
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
......@@ -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,
......
Markdown is supported
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