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

connectAndCheck does not work for import-only API_KEYs. #422

Open
spgarbet opened this issue Nov 26, 2024 · 4 comments
Open

connectAndCheck does not work for import-only API_KEYs. #422

spgarbet opened this issue Nov 26, 2024 · 4 comments

Comments

@spgarbet
Copy link
Member

import only token's have an issue as they are not allow to read any data--of which VERSION is one.

Q1: Can an import-only token read the metadata?

@spgarbet
Copy link
Member Author

I just tested with an import only token and the metadata response is not csv, but html and it breaks everything downstream.

@spgarbet
Copy link
Member Author

One suggestion put forward was to document the fact an import only token doesn't work with this library. With the metadata broken like this there is not much that can be done by this library unless the core REDCap team fixes this behavior of the API.

@spgarbet
Copy link
Member Author

Oddly, it gives a 200 status, but the web page says that access wasn't granted. Ugly.

@spgarbet
Copy link
Member Author

spgarbet commented Dec 4, 2024

@graywh Do you have a recommendation for moving forward on this one?

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