Skip to content

Instantly share code, notes, and snippets.

@seanhandley
Created July 5, 2017 16:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seanhandley/45abb024511c79ebea25c195652c0d5d to your computer and use it in GitHub Desktop.
Save seanhandley/45abb024511c79ebea25c195652c0d5d to your computer and use it in GitHub Desktop.
I need to write a spec but it'll work loosely in this way:
1) The Foundation acts as the token authority and creates a token with a unique ID and associated dollar value of credit.
2) The token is given to a user.
3) The user signs up to a participating public cloud provider and supplie their unique code.
4) The public cloud provider queries some Authority API on openstack.org (maybe public-cloud-passport.openstack.org/tokens) for validation of the token.
5) The Authority API validates the token and returns whether the token is valid and includes the dollar value of the credit.
6) The public cloud provider, armed with this information, decides to honour the token and submits a new request to the Authority API to cash in the token.
7) The Authority API returns a unique approval code and marks the token as spent.
8) The public cloud provider does whatever tech process is necessary to credit the user's account.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment