eeue56/elm-blogger

Users should be able to configure the Github repo they wish to upload their files to

Opened this issue · 2 comments

  • Text field with input for Github repo
  • Use github auth for the current user to ensure we can interact with Github
  • Maybe validate that the repo exists and is writable?

What kind of github authentication are we going to do first?

  1. Basic auth with username and password.
  2. Basic auth with personal access token (static OAuth token).
  3. Full OAuth "web application flow".

The first two could potentially be done entirely client side. The third requires the server.

With the third, I believe every instance of our elm-blogger server will have to register as a distinct application on github. (That appears to be easy to do though.)

I use two factor authentication with github. It's not clear if both basic auth methods require also passing the OTP value. I use a personal access token with homebrew and that somehow authenticates without doing OTP.

Github OAuth

I reckon that the 1st is the easiest to get started with, but at the end of the day we probably want 3rd IMO. Open to anything though!