Temporarily disabled admin policy for accessing the REST API.
This commit is contained in:
parent
09655aca1f
commit
17449b4e92
|
@ -77,7 +77,9 @@ class ContextHook(hooks.PecanHook):
|
|||
|
||||
is_public_api = state.request.environ.get('is_public_api', False)
|
||||
|
||||
is_admin = policy.check('admin', state.request.headers, creds)
|
||||
#is_admin = policy.check('admin', state.request.headers, creds)
|
||||
#TODO (dagnello): temp workaround to disably policy check for now
|
||||
is_admin = True
|
||||
|
||||
state.request.context = context.RequestContext(
|
||||
auth_token=auth_token,
|
||||
|
|
|
@ -192,7 +192,7 @@
|
|||
|
||||
# Method to use for authentication: noauth or keystone.
|
||||
# (string value)
|
||||
#auth_strategy=keystone
|
||||
auth_strategy=noauth
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue