News for hackers. Stuff that matters.
Re:What Is OAuth? by chrysoprace on Friday February 20, 2026 @10:12PM (#47097117)
OAuth has always been quite hard to grasp, even though I use it every day. One day I'll write an implementation to properly understand how it works from the bottom up and go through each of the standards that have evolved over time.
Re:What Is OAuth? by KPGv2 on Friday February 20, 2026 @11:29PM (#47097501)
I did this for OAuth and OAuth2 in Unison. It was a headache to be sure I did everything procedurally correct. The hash token is based off using certain KVPs from a dictionary of various bits of data, and you sort it in a certain order before hashing, and certain steps require certain bits of data, and sometimes it's URL encoded and sometimes it's not, and all of this dramatically changes the hash.

I remember how stoked I was to finally get it working. It was a massive pain, but luckily there were websites that would walk through the process procedurally, showing how everything worked, one step at a time.

Re:What Is OAuth? by chrysoprace on Friday February 20, 2026 @11:52PM (#47097615)
Any that you would recommend? I've found a couple of guides but they've all been quite light on details or a very basic implementation.
Re:What Is OAuth? by tndata on Saturday February 21, 2026 @03:33AM (#47098710)
I wrote one extensive guide "OpenID Connect for Developers" at https://tn-data.se/openid-connect/
Re:What Is OAuth? by brabel on Saturday February 21, 2026 @03:36AM (#47098719)
What do you mean by hash token?? Are you referring to PKCE (which is an extension to OAuth)?