-
Notifications
You must be signed in to change notification settings - Fork 8
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
Add credential management #43
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add missing functions to NAMESPACE
Update documentation
ChemiKyle
commented
Apr 12, 2022
Comment on lines
+15
to
+23
#' source_credentials <- REDCapR::retrieve_credential_local( | ||
#' path_credential = "source_credentials.csv", | ||
#' project_id = 31 | ||
#' ) | ||
#' | ||
#' target_credentials <- REDCapR::retrieve_credential_local( | ||
#' path_credential = "target_credentials.csv", | ||
#' project_id = 25 | ||
#' ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to find a better way to let users know there is more than one way to do this
Functions that use |
Note: not sure this will appear, it doesn't show up in browseVignettes :(
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #41
Still needs work to make it feel less hacky.
Examples
These might belong in prebuilt ETLs, but I'm putting them here for now as I'm using blue team as guinea pigs for initial testing.
API Token Scraping and Fabricating
The following two snippets require
.env
files populated with credentials for a production instanceprod.env
and one for a local instancelocal_1134.env
. Here is mylocal_1134.env
file:Scraping a server's API tokens and putting them in a local sqlite DB for use
Creating API tokens for all local projects
Syncing a production project to your local instance