You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some useful authentication handlers such as https://github.com/Ouranosinc/requests-magpie can be provided to auth parameter of requests to automatically resolve the authentication method before submitting a request.
Weaver should provide a way to support this kind of handlers when targeting a server that requires authentication.
For Python WeaverClient, this is straightforward. Simply expose an auth parameter that is passed down to any request operation it accomplishes. The user will then be able to call the client with its own implementation.
For the CLI, allowing custom auth handler implementations is a slightly trickier.
Parameters should be defined in a way to allow runtime instantiation of the auth handler implementation.
For example, https://github.com/Ouranosinc/requests-magpie, would be referenced as such:
Description
Some useful authentication handlers such as https://github.com/Ouranosinc/requests-magpie can be provided to
auth
parameter of requests to automatically resolve the authentication method before submitting a request.Weaver should provide a way to support this kind of handlers when targeting a server that requires authentication.
For Python
WeaverClient
, this is straightforward. Simply expose anauth
parameter that is passed down to any request operation it accomplishes. The user will then be able to call the client with its own implementation.For the CLI, allowing custom auth handler implementations is a slightly trickier.
Parameters should be defined in a way to allow runtime instantiation of the auth handler implementation.
For example, https://github.com/Ouranosinc/requests-magpie, would be referenced as such:
When detecting those arguments, the CLI should instantiate the auth handler accordingly, and then pass it around as in the case of
WeaverClient
.The text was updated successfully, but these errors were encountered: