News for hackers. Stuff that matters.
Re:Why is OAuth still hard in 2023? by cogman10 on Wednesday April 26, 2023 @09:22PM (#35722099)
> And that’s totally a use case the OAuth RFCs support (there is even an RFC specifically on token exchange), but a person wanting to add a “login with Google” button to their website isn’t interested in anything remotely like that.

That's because OAuth in the industry has been changed to only talk about authentication (AuthN) and not (or very lightly) authorization (AuthZ).

And, for the better, AuthZ is so use-case specific that bundling it together with AuthN is just asking for trouble.

Consider AWS and IAM permissions. How would you implement an IAM AuthZ policy system with OAuth? Would you actually want to?

AuthN is a relatively simple process which is why that flow through OAuth (and specifically OIDC) is fairly well trodden and defined. The OAuth Authz capabilities are infrequently used which is why you see them being so spotty.

Re:Why is OAuth still hard in 2023? by evntdrvn on Wednesday April 26, 2023 @10:50PM (#35722739)
huh? OAuth is literally a "delegated authorization framework"
Re:Why is OAuth still hard in 2023? by krinchan on Thursday April 27, 2023 @12:43AM (#35723431)
It isn't. OAuth2 really did away with AuthZ and focused on AuthN, regardless of what anyone says.

You have scopes but even those outside of the OIDC scopes are wishy washy and meaningless outside of each implementation.