Sha256: 40b689f3e9d07a46ac7828d913818cec3c7a2f898b09f0a9b51b5fda834bc0c6
Contents?: true
Size: 549 Bytes
Versions: 4
Compression:
Stored size: 549 Bytes
Contents
class ApplicationController < ActionController::Base include Oa2c::Authentication protect_from_forgery before_filter :require_oauth_client_token, :only => [:protected_client] before_filter :require_oauth_user_token, :only => [:protected_user] before_filter :require_oauth_token, :only => [:protected] def ok render :text => 'ok' end def protected_client render :text => 'protected client!' end def protected_user render :text => 'protected user!' end def protected render :text => 'protected!' end end
Version data entries
4 entries across 4 versions & 1 rubygems