Skip to content

cookrn/coinbase-oauth-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Coinbase OAuth Test

A basic example of using Coinbase OAuth as well as the returned tokens. Created in response to:

Setup

  • Create a new Coinbase application here
  • Create a .env file in your project root using the keys from your newly registered application
COINBASE_API_KEY="your api key goes here"
COINBASE_API_SECRET="your api secret goes here"
  • Run bin/rake db:setup to initialize the database
  • Run bin/rails s for the server
  • Visit the root '/' route
  • Click the link to authenticate via OAuth for Coinbase
  • You should be redirected to a 'test_refresh' page showing newly created tokens on each page load using the Coinbase::OAuthClient#refresh! method

Other Notes

License

Please email me with any questions.

About

Coinbase OAuth Test

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages