Class: OmniAuth::Strategies::Kakao
- Inherits:
-
OAuth2
- Object
- OAuth2
- OmniAuth::Strategies::Kakao
- Defined in:
- lib/omniauth/strategies/kakao.rb
Constant Summary collapse
- DEFAULT_REDIRECT_PATH =
"/oauth"
Instance Method Summary collapse
- #callback_phase ⇒ Object
-
#initialize(app, *args, &block) ⇒ Kakao
constructor
A new instance of Kakao.
- #mock_call! ⇒ Object
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 [:callback_path] = [:redirect_path] || DEFAULT_REDIRECT_PATH end |
Instance Method Details
#callback_phase ⇒ Object
34 35 36 37 38 39 |
# File 'lib/omniauth/strategies/kakao.rb', line 34 def callback_phase previous_callback_path = .delete(:callback_path) @env["PATH_INFO"] = "/auth/kakao/callback" [: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!(*) .delete(:callback_path) super end |