Live data from Hacker News

Three things to never build yourself: auth, notifications, payments

courier.com

191–193 of 193 posts

Re: Three things to never build yourself: auth, notifications, payments

#191
post #184

Earlier quoted context omitted.

Isn't signing the session cookie to prevent cookie tampering? You can send a random string, but you would need to persist the random string somewhere in order to verify against it later

The cookie value has to be stored in some sort of map\dictionary that links to the session data. If the cookie value is a random string, you don’t need to store any more data than you would with a hashed cookie value. Or maybe I’m misunderstanding your point?

ah, okay. I think I misunderstood. I was thinking about the case where the data is stored in the cookie itself (i.e. an encrypted cookie), and you would need a way to verify that the contents weren't altered. If it's storing a session id, then there isn't a reason to also sign it. Sounds like they conflated the two approaches.

Re: Three things to never build yourself: auth, notifications, payments

#192

Earlier quoted context omitted.

I'm no mobile developer, so I don't really know what I'm talking about. Please enlighten me if you can. Doesn't push notifications on iOS require using Apple Push Notification service? That was my last impression I got when I talked with someone about it.

Yes, you send a request to Apple's APIs and they will deliver a push notification. It's very simple really. Now there are a lot of wrappers around that (like courier.com) and instead of using Apple's API you know use the wrappers API. That also often requires some kind of 3rd party SDK to be integrated in your app. These services are supposed to make things easier and have additional features like SMS notifications a…

Right, that was my initial point. You can't self-host notifications as they always go through either Apples or Androids servers, with neither company provide a way to self host that part.

Re: Three things to never build yourself: auth, notifications, payments

#193
I did all three with a team of 12 engineers.

But this was in the context of a cloud/infrastructure provider, for which IAM, billing and payments are the 3 pillars of the ecosystem. You just can't outsource these business foundations to a third party.

Post reply on HN