siavol / markdairy-web

The diary web application that stores your entries in your own private GitHub repository.
https://siavol.github.io/markdairy-web/
MIT License
0 stars 0 forks source link

Smooth auth integration with GitHub #11

Closed siavol closed 3 weeks ago

siavol commented 2 months ago

It is inconvenient how to get token for a user. Would be easier to authenticate user in the app with GitHub and grant app access to the needed repo.

siavol commented 1 month ago

GitHub Apps documentation: https://docs.github.com/en/apps/creating-github-apps/authenticating-with-a-github-app/authenticating-with-a-github-app-on-behalf-of-a-user

siavol commented 1 month ago

Ok, its not possible to make it work from just a browser app, see https://github.com/isaacs/github/issues/330 I need some cheap serverless function to exchange code to access token. Can not find smth ready, created a https://github.com/siavol/func-github-app-gatekeeper/issues/1