class OmniAuth::Strategies::Yoyow
Public Instance Methods
auth_url()
click to toggle source
# File lib/omniauth/strategies/yoyow.rb, line 19 def auth_url middleware.get_auth_url(callback_url) end
callback_phase()
click to toggle source
Calls superclass method
# File lib/omniauth/strategies/yoyow.rb, line 27 def callback_phase yyw_id = request.params["yoyow"] time = request.params["time"] sign = request.params["sign"] if ! middleware.verify_auth(yyw_id, time, sign) raise CallbackError.new("invalid credential found.") end super rescue CallbackError => e fail!(:invalid_credential, e) end
callback_url()
click to toggle source
# File lib/omniauth/strategies/yoyow.rb, line 23 def callback_url full_host + script_name + callback_path end
middleware()
click to toggle source
yoyow middleware
# File lib/omniauth/strategies/yoyow.rb, line 11 def middleware @middleware ||= OmniAuth::YoyowMiddleware.new(options.auth_server) end
request_phase()
click to toggle source
# File lib/omniauth/strategies/yoyow.rb, line 15 def request_phase redirect auth_url end