Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 store-after
Octocat-spinner-32 store-before
Octocat-spinner-32 README.md
README.md

RailsCasts Episode #352: Securing an API

http://railscasts.com/episodes/352-securing-an-api

Requires Ruby 1.9.2 or higher.

Commands used in this episode

curl http://localhost:3000/api/products -I
curl http://localhost:3000/api/products -u 'admin:secret'
curl 'http://localhost:3000/api/products?access_token=123' -I
curl http://localhost:3000/api/products -H 'Authorization: Token token="c576f0136149a2e2d9127b3901015545"'
Something went wrong with that request. Please try again.