Class: OmniAuth::Strategies::Kakao

Inherits:
OAuth2
  • Object
show all
Defined in:
lib/omniauth/strategies/kakao.rb

Constant Summary collapse

DEFAULT_REDIRECT_PATH =
"/oauth"

Instance Method Summary collapse

Constructor Details

#initialize(app, *args, &block) ⇒ Kakao

Returns a new instance of Kakao.



29
30
31
32
# File 'lib/omniauth/strategies/kakao.rb', line 29

def initialize(app, *args, &block)
  super
  options[:callback_path] = options[:redirect_path] || DEFAULT_REDIRECT_PATH
end

Instance Method Details

#callback_phaseObject



34
35
36
37
38
39
# 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!Object



41
42
43
44
# File 'lib/omniauth/strategies/kakao.rb', line 41

def mock_call!(*)
  options.delete(:callback_path)
  super
end