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

What is OAuth2.0 #139

Closed
maelle opened this issue Dec 7, 2020 · 2 comments · Fixed by #142
Closed

What is OAuth2.0 #139

maelle opened this issue Dec 7, 2020 · 2 comments · Fixed by #142

Comments

@maelle
Copy link
Member

maelle commented Dec 7, 2020

  • What is OAuth (video https://www.youtube.com/watch?v=KT8ybowdyr0). Scope on OAuth2.0
  • Examples of APIs needing OAuth
  • Why is it difficult to wrap one's head around it? Because although it makes sense that OAuth2.0 involves apps (it's the use case; the OAuth dance needs an app in particular a redirect URI), for an R user it makes little sense. We'll need something playing the role of an app.
  • What's the end goal of the OAuth dance
    • An access token with some expiry date. We'll use it in headers.
    • Possibly a refresh token, with a longer life. We'll use it when the access token is expired, in the body of a request.
  • How does httr OAuth stuff works (the requests are made, httpuv for listening to the redirect URI) and why is it so handy (the token object has all the info it needs, in requests httr takes what it needs from it, and it's auto-refreshed)
  • Testing for OAuth stuff in your package. Create a fake httr OAuth2.0 token with fake credentials; use webfakes.
  • Link to gargle source code as a good example.
  • Where to save the token, blog post about rappdirs and co.
@maelle
Copy link
Member Author

maelle commented Dec 7, 2020

BYOA vs built-in app. See https://gargle.r-lib.org/articles/get-api-credentials.html#oauth-client-id-and-secret explaining risk.

@maelle
Copy link
Member Author

maelle commented Dec 17, 2020

  • What are your secrets with OAuth (the access token and the refresh tokens, wrapped in a file by httr. Important to know the details of how they are passed to the API when you cache API requests/responses by vcr/httptest).

@maelle maelle mentioned this issue Dec 18, 2020
@maelle maelle pinned this issue Jan 8, 2021
@maelle maelle unpinned this issue Apr 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant