Week 18 - 2022
The weeknote for 5/2 - 5/8.
Job
Google Identity Services
- This week I worked on Google Identity Services. I used to work with the previous version of Google's authentication and authorization services, but it seems they upgraded the service recently and it's now called Google Identity Services. The new version looks a little cleaner, but still feels very messy to work with. This week I implemented authorization by authorization code flow of OAuth 2.0. I got a lot of errors from the service, but I found many error messages are very unclear and took many hours to debug. Expecially I stuck on auth code exchange step of OAuth 2.0 Authorization Code flow. I literally used more than the entire day for debugging it. The fundamental cause of the error was I used
FormData
for body offetch
function call, which wasn't actually supported. Google's Token server responded with some validation errors first, so I misunderstand my API call is mostly correct except some details, but the reality is my call was totally wrong aboutContent-Type
and Google's Token server couldn't point that. It errored with very obscure error:You can't sign in to this app because it doesn't comply with Google's OAuth 2.0 policy for keeping apps secure. You can let the app developer know that this app doesn't comply with one or more Google validation rules.
I literally saw this error more than 100 times. It was really a painful debugging experience.
Hobby
Peano axioms
-
Working on Peano axioms as hobby. I've been trying to formulate Peano axioms in Epista syntax, but not entirely successful yet though.
The fundamental goal here is that I want to read and process these axioms completely in computer, not by hand or brain.
Life
Rei
-
Rei-kun now practises to be face-down.
息子、うつ伏せ練習中 pic.twitter.com/JM49ccgj1S
— Yoshiya Hinosawa (@kt3k) May 2, 2022
New room
- On Monday, Iyo-chan and I went to see the candidate room for our next home in Toyosu, which has 3 rooms and 1 living room. It was very nice place near the shopping mall, Lalaport. The building has nursery school in it, which is perfect for Rei-kun.