Skip to content
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 issue when uploading data to bucket. #12

Open
PolarBean opened this issue Sep 4, 2024 · 1 comment
Open

Authentication issue when uploading data to bucket. #12

PolarBean opened this issue Sep 4, 2024 · 1 comment
Assignees

Comments

@PolarBean
Copy link
Member

This used to be functional however since the migration to Rancher the authentication is no longer working
The api is documented here:
https://data-proxy.ebrains.eu/api/docs
And the information about how to change the token permissions is here:
https://github.com/Tevemadar/Collab.PHP

@ArdaBalkir
Copy link

The issue appears to be linked to app.py

@app.route("/list_bucket_content", methods=["POST"])
def list_bucket_content():
    bucket_name = request.args.get("clb-collab-id")
    path = request.args.get("file_path")
    url = f"https://data-proxy.ebrains.eu/api/v1/buckets/{bucket_name}?prefix={path}&delimiter=%2F&limit=50"
    response = requests.get(url)
    if response.ok:
        return jsonify(response.json())
    else:
        return response

Missing user token, not sent at all and there is also no bucket name listed in the calls
Listing bucket content works when accessed via data proxy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants