AgileVentures / AgileVentures/project_metric_pivotal_tracker

Proposal for handling API tokens per-project vs app-wide

Aperta
#5 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
question
Lingua principale
Ruby
Stelle
0
Fork
2
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Some tokens like a GitHub access token or Pivotal Tracker access token seem to go 2 different ways.

For public repos/accounts, ANY token can be used - the token just authenticates the API call.

For private repos/accounts, a SPECIFIC token is needed that both authenticates the call and authorizes access to that account.

If the above seems correct, then maybe a convention could be that if a gem looks for a value for credential "XYZ" and has no value set per-project, the lookup mechanism would fall back to looking for an app-level credential with the same name.

Hence, the app-wide GitHub token and (soon) Tracker token could be used to access ANY public repo/account on those services, and a separate token would only be needed to "override" it for nonpublic account access.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.