-
Notifications
You must be signed in to change notification settings - Fork 4
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 #58
Comments
Sounds good. How hard would it be to have this work with OAuth2 ? This is what is used by ESGF WPS services ? See https://aims2.llnl.gov/wps/home and https://github.com/ESGF/esgf-compute-api for examples of another user interface to WPS processes. Note that for scientists, the word "headers" does not carry the same meaning as for a programmer. I would suggest using "auth" instead or something along these lines. |
You can pass headers to birdy/birdy/templates/cmd.py.j2 Line 27 in 53cb0ba
|
Maybe we could replace these 3 parameters auth = birdy.auth.magpie_auth("your_url", "your_username", "your_password")
import_wps("wps_url", auth=auth) and internally we would set the correct headers and cookies depending on the auth implementation. It's not very far from what Regarding Oauth2, I've found this: https://github.com/jupyterhub/oauthenticator But basically the user would do something like: auth = birdy.auth.OAuth2Implementation() # trigger a login in the default browser?
import_wps("wps_url", auth=auth) and before each request we would set the |
Note that at the moment, if I try to access PAVICS services behind twitcher, I can hit GetCapabilities and DescribeProcess, but for Execute I get an uninformative error message (ie it's not picked up by our try statement in _execute). Once I open a session on the PAVICS frontend and rerun WPSClient, then I can execute requests. |
Description
Regarding authentication, right now
owslib
passes username and password directly to therequests
library, which uses basic auth.What would be nice is if owslib could accept an authorization object that was passed directly to requests (see: http://docs.python-requests.org/en/master/user/advanced/#custom-authentication)
I'm opening this issue because I wanted to get your opinion on adding authorization helpers for some providers (that wouldn't mean modifying owslib).
Right now, I would only be interested in Magpie:
And we could use it like this:
The text was updated successfully, but these errors were encountered: