Demo: Rails::API Authentication
Demonstrate the Simple Token Authentication usage in a Rails::API app.
Usage
Local
rackup -p 3000 # see http://localhost:3000
Heroku
Click the button below to automatically set up the demo in an app running on your Heroku account.
Alternatively, you can manually create a Heroku app and use Git to push and deploy.
User Data and Must See
The demo user is called Alice, she doesn't need to authenticate to acceed /
, however she can do it through token authentication. See the home page with authentication and without authentication.
On the contrary, she must authenticate in ordder to aceed to /restricted_index
. Of course, she can do it through token authentication. See the restricted home page with authentication and without authentication.