Users should be able to configure the Github repo they wish to upload their files to
Opened this issue · 2 comments
eeue56 commented
- 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?
fredcy commented
What kind of github authentication are we going to do first?
- Basic auth with username and password.
- Basic auth with personal access token (static OAuth token).
- 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.
eeue56 commented
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!