RailsCasts Pro episodes are now free!

Learn more or hide this

Securing an API

#352 Securing an API

May 23, 2012 | 7 minutes | Security, APIs
There are many approaches to locking down an API. Here I start off with HTTP Basic authentication then move on to generating a unique token which can be passed through a URL parameter or HTTP header.
  • Download:
  • source codeProject Files in Zip (95.7 KB)
  • mp4Full Size H.264 Video (20 MB)
  • m4vSmaller H.264 Video (9.66 MB)
  • webmFull Size VP8 Video (7.81 MB)
  • ogvFull Size Theora Video (25.9 MB)