On success GH callback to m3o.com/?code=0f957374a642fe783c0c&installation_id=24302523&setup_action=install (GH -> FRONTEND)
call https://api.m3o.com/github/authorize with the code and installation ID so we can store the installation ID and exchange code for a GH user token (FRONTEND -> BACKEND)
M3O can now generate tokens to access source (endpoint to be called by App and Function services)
New endpoints /github/ListRepos and /github/ListBranches allows frontend to display available repos to run in app.
NOTE:
Only supports installation in a single org per user. TODO support multiple orgs for a single user
Backend impl for new flow
New endpoints
/github/ListRepos
and/github/ListBranches
allows frontend to display available repos to run in app.NOTE:
Only supports installation in a single org per user. TODO support multiple orgs for a single user