-
Notifications
You must be signed in to change notification settings - Fork 9
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
Discovery endpoints must not request authentication #18
Comments
Okay I will do it in the next days. In the moment you can use as user: user and pw: test. |
The changes are now deployed for v0.3 |
This issue re-emerged in v0.4 where I'm prompted for authentication for e.g. the |
removes auth from certain endpoints, related to #18
/collections is working now, but /processes is still asking for authentication. Another thing I noticed is that /collections is relatively slow. Maybe caching would help? ;-) |
@m-mohr ... is that a reason that this backend still stuggles with https://open-eo.github.io/openeo-web-editor/demo/ ? |
@neteler We thought about working with the GRASS GIS back-end during the summer school, but we would need to get the three open issues fixed. Any chance to get the issues sorted? I don't think it would take ages to fix them... |
@m-mohr is it okay when the endpoints
|
@AnikaBettge No, all endpoints except the ones for credentials and discovery should just use Bearer authorization. The endoint to send your Basic details to is /credentials/oidc. Please check the documentation, which endpoint exactly allows which type of authorization. Please note that /preview is outdated and now called /results. Also note that /processes/id doesn't exist anymore. It's fine to support them in addition though, just wanted to let you know. |
So the current status seems to be that authentication was removed from the public endpoints, which is good. Unfortunately, the protected endpoints still request Basic Authentication (instead of a Bearer Token), but the back-end doesn't support /credentials/basic. That means we can't execute anything with the clients on the back-end, unfortunately. |
Can you give me a few more details on how the authentication should work? Now that I added a (non-functional) credentails endpoint I get the option to use the OpenID Connect. What Client ID should I provide there? |
Can I use the |
Hi @hwbllmnn, Therefore, you'd need to implement the endpoint |
Yes! |
Ok, thanks. Should I respond to the basic auth using a json like here? https://tools.ietf.org/html/rfc6750#page-10 |
No, that's not required as we don't implement OAuth here. (Thanks for the link anyway, that's interesting.) You can simply respond with a JSON as documented here: https://open-eo.github.io/openeo-api/draft/apireference/#tag/Account-Management/paths/~1credentials~1basic/get |
Authentication is working now and deployed on demo. A lot of tools are still not working, but at least I can now see the stored jobs and process graphs. |
Thanks, what tools do you mean? |
Keep in mind I don't know anything about this project, I'm just fixing things ;-) Anyway, I tried e.g. the add buttons to add jobs/process graphs, which failed with |
Oh, I see. I think @huhabla fixed the other issues... |
We also get CORS errors when things are requested against these
|
I'll check why it's undefined, but the issue is likely to also occur on regular requests. What has to be done is explained in the error message, but there's also a page in the documentation on how to send CORS headers. |
|
The endpoint See it live here: https://openeo.mundialis.de/api/v1.0/udf_runtimes Reply:
|
Currently, when I open https://openeo.mundialis.de/api/v0.3/ I am prompted:
One should be able to discover a backend without the need to sign up. I.e. the endpoints
should be reachable without authentication.
For example, this is essential for the Hub -- password-protected backends can't be crawled.
The text was updated successfully, but these errors were encountered: