News for hackers. Stuff that matters.
Re:Ask HN: How do you currently solve authentication? by pharaohgeek on Monday January 27, 2020 @04:05PM (#22163770)
Simple: Don't. Developing a secure authentication service is actually more difficult than it would seem on the surface. I've come to rely on an external authentication service (or, if necessary, a reputable library/framework specifically designed for it). These days my go-to is Keycloak (https://keycloak.org). It supports pretty much everything: standard username/password, MFA, SAML, OIDC, etc. Plus, it's easily deployable within a Docker container so standing it up is a breeze.
Re:Ask HN: How do you currently solve authentication? by bobsoap on Monday January 27, 2020 @04:29PM (#22163988)
I haven't heard of keycloak before, but I'm not sure what to make of their SSL cert not being valid for the non-www version of their domain (i.e. your link). Such a oversight doesn't exactly inspire confidence in a security related product.
Re:Ask HN: How do you currently solve authentication? by sarakayakomzin on Monday January 27, 2020 @04:23PM (#22163932)
I'm certainly going to trust an authentication service with a bad certificate.
Re:Ask HN: How do you currently solve authentication? by alireza94 on Tuesday January 28, 2020 @08:28AM (#22169118)
Well, the URL is missing www so you see the bad certificate error; Although, I agree that they should have handled automatic redirection from non-www to www.