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

Add support to authentication by API key #36

Closed
nadouani opened this issue Sep 13, 2017 · 1 comment
Closed

Add support to authentication by API key #36

nadouani opened this issue Sep 13, 2017 · 1 comment
Assignees
Milestone

Comments

@nadouani
Copy link
Contributor

Request Type

Feature Request

Problem Description

Currently, TheHive4Py allows basic authentication only. And since TheHive 2.13.0 will provide the ability to call the APIs using an API Key, we need to support this type of authentication mechanism to TheHive4Py library, without breaking the basic authentication support that already exists.

@nadouani nadouani added this to the 1.3.0 milestone Sep 13, 2017
@nadouani nadouani self-assigned this Sep 13, 2017
@nadouani
Copy link
Contributor Author

This change doesn't break the existing instantiation style of TheHiveApi class. Developers can now use one of the following ways:

  • Using username and password (Deprecated method)
api = TheHiveApi('http://127.0.0.1:9000', 'USERNAME', 'PASSWORD')
  • Using API KEY (Recommanded method)
api = TheHiveApi('http://127.0.0.1:9000', 'API_KEY')

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

No branches or pull requests

1 participant