pelle / oauth-plugin

Rails plugin for OAuth
http://stakeventures.com/articles/2009/07/21/consuming-oauth-intelligently-in-rails
MIT License
717 stars 217 forks source link

Allow users to only apply the middleware to specific paths #151

Open adamnengland opened 9 years ago

adamnengland commented 9 years ago

I have added an optional param to the middleware definition. The user can specify a regex to restrict the paths that the OAuthFilter will act upon. If no param is supplied, the OAuthFilter will operate on all URLs (the current functionality is the default).