-
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
using oauth for token generation #22
Comments
use the ESGF OAuth service. |
Label PAVICS please. |
OAuth can be used together with JWT tokens. JWT tokens may contain additional information. ESGF may use this combination in the implementation of their ESGF-SLCS-service. |
Python libraries for OAuth. Client: Provider: |
An initial implementation using pyramid-oauthlib is available on the The implementation is using a client-credentials workflow to get an access token: Tokens are just simple strings with uuid: The XMLRPC interface for service registration has been replaced by a Swagger/OpenAPI Rest interface protected by OAuth tokens using Cornice. The resource access to OWS services (WPS, WMS, ...) is protected by OAuth tokens. See the Jupyter notebook examples for usage. See also OAuth overview talk. |
@fmigneault Just be warned :) I won't merge to master before this is kind of stable and accepted. The adapter code needs to be tuned. |
@cehbrecht What do you mean specifically about the access of OWS services with the token? |
@fmigneault currently the WPS execute request can be blocked by an access token. But you can register a WPS as "public" and access is not restricted. The "access" is checked by twitcher ... it would just call an oauth |
@cehbrecht |
@fmigneault currently the "access" check is done here: Line 167 in 943b568
|
Looking at the process execution chain, to keep things working, I will need to add I see however another issue, related to this call: Line 169 in 943b568
Since Magpie defines other service and request types, the configs here are problematic. twitcher/twitcher/owsrequest.py Lines 16 to 26 in 943b568
One workaround could be to have these config variables defined in a separate file, which can be overridden in Dockerfile, similarly to how it's done with |
fixed in PR #86 |
No description provided.
The text was updated successfully, but these errors were encountered: