News for hackers. Stuff that matters.
Re:Is PostgreSQL good enough? by ruslan_talpa on Tuesday February 14, 2017 @07:35AM (#13643063)
Yes the docs are lacking but the hope is that the users will get the basic idea and look into things like roles+RLS in the official Postgre docs (although those are lacking too :) it's a very powerful feature, this RLS thing, but since it's new, there are not a lot of examples explaining it)
Re:Is PostgreSQL good enough? by ruslan_talpa on Tuesday February 14, 2017 @07:39AM (#13643087)
That is of course until someone finds the time to write a long article/tutorial explaining how all the pieces fit together and how PG 90% of the time can solve all your authorization needs (in regard to the data it stores itself)
Re:Is PostgreSQL good enough? by vosper on Tuesday February 14, 2017 @08:59AM (#13643510)
It's more than just roles though - it's validating email addresses at signup, resetting passwords... annoying to build yourself and easy to screw up.

In the end I went with Django Rest Framework.

Re:Is PostgreSQL good enough? by ruslan_talpa on Tuesday February 14, 2017 @10:25AM (#13644074)
Validating email is a CHECK constraint using a regexp on the email filed, resetting password is probably two short stored procedures. I get that you don't usually find code to copy/paste for something like this but it's not hard to implement either (i would say the whole signup/login/reset flow can be done in 100-150 LOC). Out of curiosity, how much time did it take to implement the API you needed?
Re:Is PostgreSQL good enough? by cdcarter on Tuesday February 14, 2017 @10:59AM (#13644421)
A general rule of thumb is that Identity and Access Management aren't businesses you want to accidentally get into. Yes, you can write IAM code yourself, but at scale it's a way better plan to trust a dedicated IdP.