-
Notifications
You must be signed in to change notification settings - Fork 38
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
API-Key #14
Comments
If you are willing to have this feature or want to check the code (sorry that my message might not be clear enough), I could create a PR for this. |
@wush978 We do already have authentication in some of the functions that require it. using Where are docs for CKAN for using I do not want to use Right now we have key passed in as a parameter. One thing we could do is look for an option of the appropriate name in the users options, and read it in if there, or use the passed in key if that is provided. Sound okay? That way users have an option of how to do auth. |
Sorry that I did not notice it. I agree with you that using And I suggest that we use the For the issue of |
good idea to allow setting via a helper function. Could change functions in https://github.com/ropensci/ckanr/blob/master/R/base_url.R to just be e.g., Using please do send a PR |
…r of authentication. ropensci#14
I agree to get the test suite filled out. And will make any more development easier as we will know when things break. I think we can test against the demo server (at http://demo.ckan.org), right? I'll start the tests, and a list in that issue, and we can tick them off as they are completed. You can put your name by ones you are working on. |
@florianm looks like you didn't finish a sentence? |
@wush978 @sckott |
@florianm note that I switched us to use all env variables now, so no more options |
I see, looks much cleaner now, ta! |
I think this is handled now |
Dear maintainers,
The ckan platform allow authentication and authorization with
API-Key
in http request.I noticed that we could append the API-Key through
add_headers
with keyX-CKAN-API-Key
to authenticate with ckan server. The main problem to me is a secure way to let the user input their API-Key.I propose two way to let the users input their API-Key.
The first way is let them set the option properly in
.Rprofile
or somewhere. That is to say, we could read the options fromgetOption
. In such way, the user does not need to input their API-Key.Another way is to receive the input through
svDialogs::dlgInput
where the input will not be log into the .history file.How do you think?
Thanks,
Wush
The text was updated successfully, but these errors were encountered: