Module: OAuthCampingPlugin::Filters
- Defined in:
- lib/camping-oauth.rb
Overview
Filters module for OAuth Camping Plugin. The module will be plugged in to the main app Helpers module. Example: module CampingOAuthProvider include Camping::Session include CampingFilters extend OAuthCampingPlugin include OAuthCampingPlugin::Filters # … end
Class Method Summary collapse
-
.included(mod) ⇒ Object
Also adds a before filter on all controllers to ensure the user is set.
Class Method Details
.included(mod) ⇒ Object
Also adds a before filter on all controllers to ensure the user is set
434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 |
# File 'lib/camping-oauth.rb', line 434 def self.included(mod) mod.module_eval do before :all do set_user end before :OAuthRegisterApplication do login_required end before :OAuthProvideRequestToken do verify_oauth_consumer_signature end before :OAuthProvideAccessToken do verify_oauth_request_token end end end |