Phasedio / webapp

1 stars 0 forks source link

Github commit events #73

Closed daveriedstra closed 8 years ago

daveriedstra commented 8 years ago

Post updates anytime user commits to github. Distinct from issue#31

daveriedstra commented 8 years ago

FireBase Auth with GitHub is simple but overwrites user session and is so unusable (without some obtuse mapping system). FB might be rolling out a multi-provider synch service thing eventually.

details: http://grokbase.com/t/gg/firebase-talk/14a8wy4wzf/firebase-handling-multiple-providers http://stackoverflow.com/questions/15148089/how-can-i-login-with-multiple-social-services-with-firebase.

daveriedstra commented 8 years ago

Passport has a similar story to FireBase except we'd have to implement sessions on our own either using a new mongo db or stashing data in firebase. Might not need sessions at all, in which case the vanilla approach will do (since we really only need auth for registering/deregistering webhooks).

daveriedstra commented 8 years ago

webhook metadata is currently NOT saved in our own DB, but repo metadata is. This is to ensure that only up-to-date data about whether the webhook is active or not is being reported to the user.

daveriedstra commented 8 years ago

we might want to add a status type property (and corresponding META values), so if, eg, status.type == Phased.STATUS_TYPE.GITHUB then we can format it differently and check for extra metadata that is only associated with github statuses