Skip to content

Accomodate Google Colab#237

Closed
jennybc wants to merge 7 commits intomainfrom
google-colab
Closed

Accomodate Google Colab#237
jennybc wants to merge 7 commits intomainfrom
google-colab

Conversation

@jennybc
Copy link
Copy Markdown
Member

@jennybc jennybc commented Feb 21, 2023

Closes #140

@jennybc jennybc changed the title Rough draft of Google Colab solution Accomodate Google Colab Feb 21, 2023
Comment on lines +99 to +104
#' `gargle_oauth_client_type()` returns the option named
#' "gargle_oauth_client_type", if defined. If defined, the option must be either
#' "installed" or "web". If the option is not defined, the function returns:
#' * "web" on RStudio Server, Posit Workbench, Posit Cloud, or Google
#' Colaboratory
#' * "installed" otherwise
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this rigged differently from gargle_oob_default(), where we impose our own logic before consulting an option? Here we first consult the option and impose our own logic if the option is undefined.

Because it seems like we must do some form of OOB auth on RStudio Server, Posit Workbench, Posit Cloud, or Google Colab. Starting a local webserver will never make sense in this context.

Whereas, once we know we're doing some form of OOB, the client type determines whether it's conventional OOB ("installed" client type) or pseudo-OOB ("web" client type). I expect conventional OOB to be relatively rare these days, but it is still possible.

@jennybc jennybc marked this pull request as ready for review February 22, 2023 18:50
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

Successfully merging this pull request may close these issues.

Auth in Google Colaboratory notebooks

1 participant