A tiny app aspiring to be a dynamic means of communicating who has access to what in an Open Company. (Origin story: gratipay/gratipay.com#2220)
export GITHUB_TOKEN=xxxxxxxxx
export HEROKU_API_KEY=xxxxxxxxx
export BALANCED_COOKIE_SESSION_ID=xxxxxxxxxxxx
export BALANCED_MARKETPLACE_ID=xxxxxxxxxxxx
bundle install --path vendor/bundle
bundle exec camping app.rb
curl http://127.0.0.1:3301
- Github personal access token must have the permissions
public_repo
&read:org
BALANCED_COOKIE_SESSION_ID
was retrieved from the browser inspector tool.users.yml
is used to tie Heroku account emails to github usernames, which we use throughout to show access. If there is a Heroku collaborator without an entry inusers.yml
, we opt to obfuscate that user in the access listing. Otherwise we would only be able to identify them by their Heroku email, which they might consider private.