TODO: Garbage in progress - Clam-/upgallely GitHub Wiki
Notes
Okay googly login works, however need to implement "add new user". Am thinking you punch in an e-mail address. When that user attempts to sign in for the first time, (in def auth) when oauth.google.parse_id_token returns, it should check database for existing sub, if subscriber ID isn't found in our database, check if email exists in our database. If email exists, but sub doesn't, store the sub (along with any other garbage we want to store) and then the user is "authed" in our app.
On each time auth executes, if sub is found, user is allowed, if auth is not found and email isn't found (or email is found with different sub), reject.
Implement the above next time workin on this. (also need to actually edit the database model to store this garbage.
Then:
- Implement authorization (lol how do this, starlette)
- are you actually serious? starlette doesn't have native authorization-type scaffolding?? I need to make my own things like groupfinder and stuff? Please, pyramid, help. (Am starting to think starlette is too newschool and pyramid olde men actually knew what they were doing and made a really solid framework)