Testing an OAuth Provider in your Rails App
16 March 2010Recently I received a request from another B2B SaaS vendor to integrate with Catch the Best, so their users could pull their data from Catch the Best into this app. This is a classic use-case for OAuth, so I dove in to learning how to make my Rails app an OAuth provider. Well, thanks to the OAuth gem and the OAuth Rails plugin, it only took an hour or two to do.
However, since it took a little longer than it should have to do some testing of the app from the console, I thought I'd post this code in case it proves helpful to someone else working on this. My goal was to manually verify that the access control (the before filter) was working properly, so I could email the details on the OAuth endpoint to this other vendor and be reasonably sure it would work well for them. Here's the code:
Comments : Comments and Reactions
Categories :
Ruby on Rails,
OAuth





Recent Comments