News for hackers. Stuff that matters.
Re:Zero-day in Sign in with Apple by catlifeonmars on Saturday May 30, 2020 @11:33PM (#23366951)
I noticed after reading your comment that HS256 is marked as “required” for compliant implantations. In practice, I have only ever seen signers implement RS256 though...
Re:Zero-day in Sign in with Apple by sascha_sl on Sunday May 31, 2020 @04:50AM (#23368199)
In OIDC you can actually specificy supported key types in the discovery process and the IdP always decides the key type anyway.

HS256 relies in shared secrets, so anyone who can verify a token can also change it. RS256 allows you to download the IdP keychain every once in a while and verify tokens offline.

Re:Zero-day in Sign in with Apple by catlifeonmars on Sunday May 31, 2020 @01:27PM (#23371001)
Yes, that’s what I meant. I only see RS256 implemented by identity providers (and advertised via .well-known/openid-configuration). This makes sense, since most identity providers are decoupled from their clients and thus cannot feasibly share a symmetric key. I am confused what is meant in the JWA specification[1] by “HS256: required” under “implementation requirements” in the table of allowed values (the entry for RS256 reads “recommended” for that column).

[1]: https://tools.ietf.org/html/rfc7518#section-3.1