when you refresh a token, spotify may optionally also return a new refresh token which invalidates the existing refresh token.
but if you don't refresh then iiuc the old refresh token keeps working.
aerozol
re. global scope, as a derp end user I don’t really want a list of all MetaBrainz projects. Like on Google I don’t care if a Google account lets me access YouTube and Drive etc. I just want to create an account and login
Unless it’s giving external apps access or sharing my data in some way (which creating a login isn’t, I haven’t added data yet)
Freso
mayhem: When you have a moment to task switch/for admin stuff, it would be great to have the Zoom meeting link before tomorrow. :)
lucifer: is this an intermediate code before requesting a token?
lucifer
the scopes here can also become a join table.
zas
monkey: Pizza Mexican
monkey
👍
yvanzo
monkey: Bolets
monkey
OK
lucifer
alastairp: yes. client redirects user to MeB.org. user approves on MeB.org and gives an authorization code to client on redirect_uri. client queries MeB.org with authorizaton code to get access token.
this is the same workflow we use in LB to auth with MB/spotify/CB etc.
alastairp
lucifer: right, in that case, I think that table is probably fine
lucifer
👍
alastairp
it's a workflow for something that we need to do, but doesn't need anything special extra based on what we've discussed
do we want to require 3rd party apps to respond to an account deletion request?
e.g. we POST to them to say "accoutn luficer was deleted, please remove it from your app"
lucifer
probably yes i guess.
but can add that later
we'll need an extra column in client table for a webhook url. and some more tables if we want to retry etc.
mayhem: alastairp: the SQL schema you'll need to create in the db.
mayhem
ok, on it.
lucifer
one change from what we discussed before, added a issued_at column to client_id. for marking the time of creation of an oauth app. saw that the authlib demos were using it so added.
mayhem
makes sense
lucifer
i am working on the MeB side server implementation meanwhile.
mayhem
tables created.
anything I can do to help? like code the three fake accounts?
lucifer
sure creating test accounts sounds good.
mayhem
which function would get called to check to see if a login is valid?
lucifer
i am not sure currently sorry. but i think regular MeB login functions.
i'd say creating user in db would be easiest
i.e. add new user to `ouath.user` table.
other than that need to follow the steps here and update the branch. some steps are already done but authlib has a version out so may need to update. https://docs.authlib.org/en/latest/flask/2/inde...
reosarevok
Just make sure you don't call it ouath
lucifer
uh i named the sql schema oauth but we can rename it before deploying to prod.
reosarevok
I meant that you typoed it there, I was making sure it wasn't copied from somewhere :)
(except for bugs that will show up when we run first and fix retry so on)
working through authlib docs to resolve these TODOs currently.
mayhem
everyone: I've created three dummy user/password entries right now: test1/test1 , test2/test2 , test3/test3
lucifer: a bcrypted password looks like this `{CRYPT}$2b$12$VzZ0OEmapdPUqw.4.ZTeZuBUz2RE6m.oPzXRDqpt8CpMubQiJ5kVq`
when passing it to the bcrypt function, we need to remove the {crypt} which indicates to us which hash alg to use.
lucifer
i see, makes sense.
oh i think i might be able to sidestep these todos. let me put up the current branch on test.meb.org and check
mayhem: how about i change the login endpoint in this branch so that anyone who logins there is logged in as test1/test1?
mayhem
sure
lucifer
well not even login, just click login and done
👍
mayhem
yeah, understood
zas
mayhem suggested we do a group photo with everyone here at the office wearing the amazing new summit t-shirt. It would be nice to do that at 17 in main hall, before the daylight is too low.
mayhem
ok
we'll have to hold lucifer's shirt up to the laptop, I guess.
alastairp: But, we won't be able to show such detailed statistics for reviews for particular types of an entity_type. For example the number of reviews for Person, Group, Orchestra, Choir... which are types for artist.
alastairp
ansh: given the number of reviews of artists that we have, I think it's probably OK if we just had a total count of reviews for now ;)
ansh
True
alastairp
aerozol: otherwise, the easiest solution would probably be an amazon order that will get here tomorrow
monkey: aerozol: one thing that irritates me sometimes is how small `i` looks `l` in the sintony fonts. you probably have noticed it on various meb sites. can that be improved?