-
Notifications
You must be signed in to change notification settings - Fork 46
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
Rework auth/api_token parameters #201
Commits on Aug 24, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 40e2ebc - Browse repository at this point
Copy the full SHA 40e2ebcView commit details -
Unify __str__ Methods for APIs
This way, they use the class names and base URLs, instead of being specified for each class.
Configuration menu - View commit details
-
Copy full SHA for 02b847a - Browse repository at this point
Copy the full SHA 02b847aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0c6df8a - Browse repository at this point
Copy the full SHA 0c6df8aView commit details -
Add Failing Test: API_TOKEN is Exposed in GET
This test verifies that parameter ?key is not used. Otherwise, it will occur in error messages, which might lead to an unwanted disclosure of the key, e.g., when sharing log messages.
Configuration menu - View commit details
-
Copy full SHA for 068c432 - Browse repository at this point
Copy the full SHA 068c432View commit details -
Add Custom Auth Implementations
- Add custom httpx.Auth implementation for Dataverse API Tokens - Add custom httpx.Auth implementation for Dataverse Bearer Token - Add auth to docs
Configuration menu - View commit details
-
Copy full SHA for 89149bc - Browse repository at this point
Copy the full SHA 89149bcView commit details -
Prefer httpx.Auth Instead of api_token
It is still possible to use the api_token parameter. In this case assume an API token was copied from the user profile of a Dataverse instance. If both are specified, an api_token and an explicit auth method, warn the user and use the auth method. Closes gdcc#192.
Configuration menu - View commit details
-
Copy full SHA for d3a1fd9 - Browse repository at this point
Copy the full SHA d3a1fd9View commit details -
Deprecate auth Parameter of Individual Functions
Instead, if required, use multiple instances of each API implementation.
Configuration menu - View commit details
-
Copy full SHA for a49e644 - Browse repository at this point
Copy the full SHA a49e644View commit details -
Fix mypy Issues in api and conf.py
Also add types-jsonschema as a lint dependency.
Configuration menu - View commit details
-
Copy full SHA for 31e047b - Browse repository at this point
Copy the full SHA 31e047bView commit details -
Configuration menu - View commit details
-
Copy full SHA for c351faa - Browse repository at this point
Copy the full SHA c351faaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5601c4a - Browse repository at this point
Copy the full SHA 5601c4aView commit details -
Add SWORD tests and make them pass
The SWORD API returns an empty string for 401 Unauthorized. This would cause the usual response handling of extracting the error message from the JSON to raise, so we except that in that case. Resolves review comment on gdcc#201.
Configuration menu - View commit details
-
Copy full SHA for c3b7a67 - Browse repository at this point
Copy the full SHA c3b7a67View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6ccc193 - Browse repository at this point
Copy the full SHA 6ccc193View commit details