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

Authentication issue due to deleted global_admin user "401 Client Error: UNAUTHORIZED" #11

Open
digcyber opened this issue Jun 3, 2021 · 0 comments

Comments

@digcyber
Copy link

digcyber commented Jun 3, 2021

Ran into issues as script was pulling API key for a global_admin user account that had been deleted.

Error -> "401 Client Error: UNAUTHORIZED"

Fixed the issue by updating line #24 of airgap_feed.py with the following:

cur.execute("select auth_token from cb_user where (global_admin is true AND deleted is false) order by id limit 1;")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant