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

Journal code is not validated #6

Open
TobiasKappe opened this issue Nov 14, 2023 · 0 comments
Open

Journal code is not validated #6

TobiasKappe opened this issue Nov 14, 2023 · 0 comments

Comments

@TobiasKappe
Copy link

When I issue a POST to /api/login with my login data and the journal code epijinfo, as follows:

{"username": "tkappe","password": "<snip>","code": "epijinfo"}

the authentication succeeds in that I get a token. However, subsequent requests for data do not return any information; for instance, /api/papers returns an empty list of papers.

When I log in using the journal code epijinfo.episciences.org, I do get a result from /api/papers when I use the resulting token.

It would be nice if the login endpoint would validate the journal code, and return an error if the journal does not exist. Perhaps the correct format for the journal code should also be documented.

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