149 points · by buovjaga · 8y ago · 79 comments
And it's also already implemented and supported in lots of places. There are tools like Dex that offer OIDC and can use "upstream" OIDC providers for the actual user management.
I'm not getting why IndieAuth is needed beyond what OIDC offers?
Also, for those mentioning Persona/BrowserID/Portier, it is an OpenID Connect provider, and I've just recently sent PRs for it and Dex that allow them to work together.
Someone asked that in the comments of the article and the author responded with this link:
https://indieweb.org/indieauth-vs-openid-connect
The answer seems to boil down to IndieAuth being more decentralized.
https://developer.mastercard.com/blog/why-mastercard-doesnt-...
Thus OAuth 2.0 supports both authorization and authentication. However providers are free to pick what features they want to provide to clients.
Might seem like a remote chance from a user's point of view, but could be a threat from a payment processor's view, with billions of daily transactions.
Also, easier to prove the integrity of the message when you're handling the authentication piece yourself rather than assuming TLS was correctly enforced end-to-end.
- user identity: core user info endpoint
- discovery: https://openid.net/specs/openid-connect-discovery-1_0.html
- client registration: https://openid.net/specs/openid-connect-registration-1_0.htm...
And also other features which are important for more complex cases than just simple "login using X" button.
I sure do wish people would just standardize on OIDC...
Not many things support dynamic client registration, which means the list of IDPs a site can use are pretty static.
I tried Gluu and it's a RAM hog for what it does (IMO). I took a look at the developer docs and it seems all but impossible to override the password hashing method with your own (query passwords from your own database instead of LDAP hashed) was one use case I was looking into)
Even storing my custom hashes in LDAP would have been acceptable.
I've been looking for a good solution to the "I have 3 small web apps that are used by the same people, I should centralise authentication and authorization" problem, and yet to find something sensible for that usecase.
Gluu is just a facade company that's recompiling it from source and distributing the binaries for free.
It supports pretty much everything you can dream of, including different password hashing and you can write your own plugins to interface with anything you like.
However it's a very complicated product. It's for a large company or a country with a dedicated team to run and customize.
P.S. Not affiliated to any of these companies. I had to do the performance assessment of these products some year ago for a government contract. https://thehftguy.com/2015/10/14/iam-benchmarks-openam-vs-ws...
OpenAM is also no longer opensource. The source was closed by Forgerock in the beginning of 2018.
One of the forks that sprung from this source closing is wren:security ( https://wrensecurity.org ). Disclosure: I work on that project ;-)
For this use case, they'd also need to configure JAAS.
I've been thinking of writing my own SAML IdP in Python (since I have plenty of experience with the language) and I'm not naive to the various security things that can go wrong, but I'm no expert cryptographer either.
Such a feature might best be specified as an extension to this API:
https://developer.mozilla.org/en-US/docs/Web/API/Credential_...
which although experimental does have some level of browser support.
The RFC even includes an example of doing something very similar to this use case:
Anyone remember xAuth effort led by Meebo and others? It ran into the same objections for using a centralized domain for the time being even though it was great.
Also the mockups are really confusing, you're logging in with a URL, not a "domain". Also, having the example text as "you.domain.com" would confuse users who have "github.com/user", as used in the previous examples.
My favorite implementation: Keycloak.
It all mentioned
- user identity: core user info endpoint
- discovery: https://openid.net/specs/openid-connect-discovery-1_0.html
- client registration: https://openid.net/specs/openid-connect-registration-1_0.htm...
And also other features which are important for more complex cases than just simple "login using X" button.
OpenID Connect adds lots of bloat, it's very large and complicated. IndieAuth is actually easy to understand and implement.