News for hackers. Stuff that matters.
Re:Show HN: Run your own OAuth2 and OpenID Connect Provider by kough on Tuesday October 25, 2016 @05:59PM (#12792092)
I think I agree, although I'd like to point out a few things.

1) Just like any other authentication/security system, probably not a good idea to write your own for production. As a learning experience, definitely.

2) The spec is pretty good, although it's a little confusing that it's more or less split across https://tools.ietf.org/html/rfc6749 (oauth) and https://tools.ietf.org/html/rfc6750 (bearer tokens)

3) The hardest part about "getting it right" is that the spec allows for broken/insecure behavior. You don't have to enforce https; you don't have to use expiring token; you can even allow password-based grants. Making these choices would be stupid, but you'd technically be OAuth 2.0 compliant.

Re:Show HN: Run your own OAuth2 and OpenID Connect Provider by arekkas on Wednesday October 26, 2016 @04:14AM (#12794784)
I agree 100% on number (3), especially because almost nobody knows https://tools.ietf.org/html/rfc6819 (OAuth 2.0 Threat Model and Security Considerations)