Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

audit_data not available, when requiring a remote user #1632

cornelinux opened this issue May 15, 2019 · 1 comment


None yet
1 participant
Copy link

commented May 15, 2019

When using remote user the following error can occur:

   File "/opt/privacyidea/local/lib/python2.7/site-packages/privacyidea/api/lib/", line 1226, in is_remote_user_allowed
   File "/opt/privacyidea/local/lib/python2.7/site-packages/werkzeug/", line 347, in __getattr__
     return getattr(self._get_current_object(), name)
 AttributeError: '_AppCtxGlobals' object has no attribute 'audit_object'

@cornelinux cornelinux added the bug label May 15, 2019

@cornelinux cornelinux added this to the 3.0.1 milestone May 15, 2019


This comment has been minimized.

Copy link
Member Author

commented May 15, 2019

This error occurs when the GET request to webui/ is called.
This is the GET request for the login dialog. This login dialog is not recorded in the audit log anyways.
So we are safe to remove the audit_data from the policy call.

cornelinux added a commit that referenced this issue May 16, 2019

Allow to write policy to audit entry
In case of POST /auth the webui Remote user
policy should be written to the audit entry.

Closes #1632
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.