class OmniAuth::Strategies::Kakao
Constants
- DEFAULT_REDIRECT_PATH
Public Class Methods
new(app, *args, &block)
click to toggle source
Calls superclass method
# File lib/omniauth/strategies/kakao.rb, line 29 def initialize(app, *args, &block) super options[:callback_path] = options[:redirect_path] || DEFAULT_REDIRECT_PATH end
Public Instance Methods
callback_phase()
click to toggle source
Calls superclass method
# File lib/omniauth/strategies/kakao.rb, line 34 def callback_phase previous_callback_path = options.delete(:callback_path) @env["PATH_INFO"] = "/auth/kakao/callback" options[:callback_path] = previous_callback_path super end
mock_call!(*)
click to toggle source
Calls superclass method
# File lib/omniauth/strategies/kakao.rb, line 41 def mock_call!(*) options.delete(:callback_path) super end
Private Instance Methods
raw_info()
click to toggle source
# File lib/omniauth/strategies/kakao.rb, line 47 def raw_info @raw_info ||= access_token.get('https://kapi.kakao.com/v1/user/me', {}).parsed || {} end
raw_properties()
click to toggle source
# File lib/omniauth/strategies/kakao.rb, line 51 def raw_properties @raw_properties ||= raw_info['properties'] end