Merge "check if tokenless auth is configured before validating"
This commit is contained in:
commit
fb9fbbafcd
|
@ -262,6 +262,9 @@ class AuthContextMiddleware(wsgi.Middleware):
|
||||||
:returns: True if client_issuer is trusted; otherwise False
|
:returns: True if client_issuer is trusted; otherwise False
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
if not CONF.tokenless_auth.trusted_issuer:
|
||||||
|
return False
|
||||||
|
|
||||||
client_issuer = env.get(CONF.tokenless_auth.issuer_attribute)
|
client_issuer = env.get(CONF.tokenless_auth.issuer_attribute)
|
||||||
if not client_issuer:
|
if not client_issuer:
|
||||||
msg = _LI('Cannot find client issuer in env by the '
|
msg = _LI('Cannot find client issuer in env by the '
|
||||||
|
|
Loading…
Reference in New Issue