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

Library Api Tokens do not work #2329

Open
ghost opened this issue Apr 27, 2020 · 1 comment
Open

Library Api Tokens do not work #2329

ghost opened this issue Apr 27, 2020 · 1 comment

Comments

@ghost
Copy link

ghost commented Apr 27, 2020

I created an API Token for a single library, set it to read-write but whenever i wanna access the API i get the

“detail”: “Invalid token”

response. No Matter what API endpoint i query.

Is this supposed to work? Are there special endpoints for the lib api token to query?

Getting the token for the whole account and querying the API with that works fine, just not if i create a token for a single library.

@maltevogl
Copy link

The library token is currently only usable for special endpoints described here https://download.seafile.com/published/web-api/v2.1/library-api-tokens.md Looking at the source

Part of the source code is here https://github.com/haiwen/seahub/blob/master/seahub/api2/endpoints/via_repo_token.py

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

1 participant