Lynnesbian / mstdn-ebooks

NO LONGER BEING UPDATED, NOT GUARANTEED TO WORK AT ALL
Mozilla Public License 2.0
34 stars 28 forks source link

[work-in-progress] First pass at attempting to pull login values from env vars #9

Closed nuklearfiziks closed 4 years ago

nuklearfiziks commented 5 years ago

This is a WIP but it should fundamentally work. I haven't tested anything tho, I need to get back to writing something due really soon... 😅

Remaining issues:

  1. Ephemeral storage is going to be an issue given this uses sqlite3. I have a few different ideas:
  1. Getting the access token will be different than the existing use case; the whole two-legged OAuth dance won't really work unless we explicitly set up a webserver that gives users their access token, which they then paste into Heroku's config. Actually this is pretty straight-forward now that I think of it, I'll just host a webserver for this purpose somewhere.

Uhhhh really sorry I have pylint set to autoformat to PEP8 and so this diff is really hard to read 😓

Lynnesbian commented 5 years ago

by default, if you don't provide an oauth URL, mastodon will just give you the code instead c: thanks so much for all this! i'll have a look at it in a bit!