Show HN: Serverless OAuth on a Github page
oauth-io.github.io
Show HN: Serverless OAuth on a Github page
1–9 of 9 posts
Re: Show HN: Serverless OAuth on a Github page
#2Re: Show HN: Serverless OAuth on a Github page
#3Re: Show HN: Serverless OAuth on a Github page
#4https://github.com/voltagex/python-gist
Edit: Yes, I can. Until I get 100 users of the script, then I'd have to shut it down.
Re: Show HN: Serverless OAuth on a Github page
#5It's not exactly serverless. You're just using their server instead of your own. To make this work you have to give oauth.io your private keys. That said, I love the simplicity of this implementation. OAuth is still way too hard to implement by hand.
Because there is here as you mentionned Oauth.io server, but also Github server and lots of other servers for fonts/librairies etc...
Nothing is technically "serverless" on the web ;)
Re: Show HN: Serverless OAuth on a Github page
#6 Invalid formatRe: Show HN: Serverless OAuth on a Github page
#7It's not exactly serverless. You're just using their server instead of your own. To make this work you have to give oauth.io your private keys. That said, I love the simplicity of this implementation. OAuth is still way too hard to implement by hand.
Re: Show HN: Serverless OAuth on a Github page
#8Re: Show HN: Serverless OAuth on a Github page
#9Client-flow is the far more interesting flow, for me, anyway. There the browser client gets the token directly from the auth server, that really is serverless. The key advantages of client-flow are you don't need the immediate server (less cost for you) and you don't have to see the data if you're using a third-party storage (better security and privacy).
You do need to be careful with security issues around the auth token itself, in server-flow you store the token on the server and have the session bind you to that token. Stealing a session is harder than stealing a token.
I know of two implementations to date:
Google's Official JavaScript Client library [0]
Dropbox's Unofficial JavaScript library [1]