https://cheatsheetseries.owasp.org/cheatsheets/Authenticatio...
Ask HN: Any comprehensive courses on Auth?
11–20 of 93 posts
Re: Ask HN: Any comprehensive courses on Auth?
#12Huh, I always forget a lot of programmers weren't around when this stuff was invented. It's all actually pretty simple, and very little complexity. However, there are so many "gotchas" (that can result in zero security) that anyone writing a guide like this would probably have you sign a waiver, then any company you work for sign a waiver, and include your firstborn child. For example, user/pass is pretty simple on t…
I say that as someone who was on the "receiving end" of this kind of advice for years btw. I always thought that the things that are "better left to libraries" are really arcane and impossible to understand, which only lead to confusion and an inability to truly assess options. And it's really just a matter of semantics and framing. It would be perfectly reasonable to say "it's not complex as long as you keep this reasonably long list of gotchas in mind".
Re: Ask HN: Any comprehensive courses on Auth?
#13Huh, I always forget a lot of programmers weren't around when this stuff was invented. It's all actually pretty simple, and very little complexity. However, there are so many "gotchas" (that can result in zero security) that anyone writing a guide like this would probably have you sign a waiver, then any company you work for sign a waiver, and include your firstborn child. For example, user/pass is pretty simple on t…
I would add: * on the client side, store the token as a secure https only cookie, as local storage is accessible by any module of your app, see supply-chain attacks. * be extra careful with oAuth [1] * for APIs, be strict with CORS [2] [1] https://salt.security/blog/oh-auth-abusing-oauth-to-take-ove... [2] https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS
Re: Ask HN: Any comprehensive courses on Auth?
#14It would head well into advanced user/password schemes.
The problem is that even advanced mechanism like a SCRAM based authentication with additional 2fa are rather simple to grasp & implement, but really hard to get right / secure.
A lot of the evolution is rather an evolution of attacks and issues, leading to new schemes. OWASP is thus pretty relevant, too.
Re: Ask HN: Any comprehensive courses on Auth?
#15I'm also interested in this, but specifically something that covers authentication between services and in particular situations where a user authenticates against service a and now service a needs to ask service b to do something on behalf of the user. Not just a handwavy "use OAuth" but more concrete and thorough.
https://www.lvh.io/posts/a-childs-garden-of-inter-service-au...
Re: Ask HN: Any comprehensive courses on Auth?
#16I have not seen a course that covers all of the things you are asking for. The best courses on the oidc/oauth and saml I have seen were the paid ones here: https://www.hackmanit.de/en/training/portfolio On linkedinlearning this one was quite ok: https://www.linkedin.com/learning/web-security-oauth-and-ope... Free ressources check: - https://aaronparecki.com/ -OAuth 2.0 and OpenID Connect (in plain English): https://m…
Re: Ask HN: Any comprehensive courses on Auth?
#17Re: Ask HN: Any comprehensive courses on Auth?
#18Re: Ask HN: Any comprehensive courses on Auth?
#19but useful stuff:
certified ethical hacker course can give you a perpetrator's pov on how people get hacked.
owasp cheatsheet and latacora blog are useful reference also.
understanding how companies offer these services also helps, e.g. clerk.com, ory.sh, auth0, okta, supertokens, etc.
understanding how authentication coincides with authorization helps too.