Closed GuillaumeGomez closed 3 weeks ago
It should be possible to register an Oauth app, so we can write Gists for the user (once they allow it). I looked into it and I find Oauth massively complicated, but maybe I'm just stupid. :)
I wrote an OAuth2 implementation 7 years ago in an afternoon. It's actually super simple with the right explanations. You just need to find the right explanation. In short (well, actually it's literally just that):
I have a small implementation in python here (well, it starts from this function, but I'll let you take a look if you're interested).
Anyway, I don't think storing content into gist or anywhere is a good idea here. Compression then base64 in URL should be enough I think. ^^'
Oauth itself is OK if you're actually using it on server-side, but in here I would have liked to keep everything on the client-side, so the browser would get the bearer-token, and talk with github, without any middle-man.
That's one more argument in favor to not use oauth or any external service. ;)
Implemented in #11.
I've been looking into this and I'm not sure how to do it. We could compress both source codes and generate URL parameters in base64 I suppose. Do you have a better idea maybe @Kijewski ?