Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
csaybar committed Apr 23, 2021
2 parents f891e53 + 6dac515 commit 5fc541d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion R/ee_Initialize.R
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,12 @@ ee_create_credentials_earthengine <- function(email_clean, display) {
earthengine_auth <- ee$oauth$get_authorization_url(code_challenge)
# Display URL?
if (display) {
message("\n", earthengine_auth)
message("\n To authorize access needed by Earth Engine, open the following URL in a web browser and follow the instructions: \n \n", earthengine_auth, "\n \n The authorization workflow will generate a code, which you should paste in the box below")
auth_code <- readline("Enter Earth Engine Authentication: ")
token <- ee$oauth$request_token(auth_code, code_verifier)
credential <- sprintf('{"refresh_token":"%s"}', token)
write(credential, main_ee_credential)
write(credential, user_ee_credential)
}
ee_save_eecredentials(
url = earthengine_auth,
Expand Down
2 changes: 1 addition & 1 deletion R/ee_version.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
#' @return Character. Earth Engine Python API version used to build rgee.
#' @export
ee_version <- function() {
'0.1.258'
'0.1.262'
}
Loading

0 comments on commit 5fc541d

Please sign in to comment.