Re:Launch HN: ShareWith (YC W21) – Easily share internal web...
by nicoburns on Thursday December 17, 2020 @09:08PM
(#25463002)
Might it be possible for ShareWith to authenticate with my application using some simple method (e.g. a shared secret HTTP header)? Then I could get all the benefits of the auth model without having to install anything (other than my app).
Re:Launch HN: ShareWith (YC W21) – Easily share internal web...
by jschorr on Thursday December 17, 2020 @09:20PM
(#25463079)
In theory, you could provide an auth header representing your incoming user to our API and verify that way, yes. You'd still need to perform authentication (using Auth0 right now, as that is what ShareWith uses) to identify which user is hitting your application, but then the authorization check could be done via the API.
For new projects, it might seem like picking up built-in auth system is easier until you realize you have to build a model of hierarchies of organizations, groups, etc... In my experience, some of these libraries cannot even express that model despite it being the most commonly required for web apps. ShareWith implements that model for you and even handles some of the trickier corner-cases like arbitrarily nesting groups.