Class: Authkeeper::OmniauthCallbacksController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Authkeeper::OmniauthCallbacksController
- Defined in:
- app/controllers/authkeeper/omniauth_callbacks_controller.rb
Constant Summary collapse
- GITHUB =
'github'
- GITLAB =
'gitlab'
- TELEGRAM =
'telegram'
- GOOGLE =
'google'
- YANDEX =
'yandex'
- VK =
'vk'
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
22 |
# File 'app/controllers/authkeeper/omniauth_callbacks_controller.rb', line 22 def create; end |
#destroy ⇒ Object
24 25 26 27 28 29 30 |
# File 'app/controllers/authkeeper/omniauth_callbacks_controller.rb', line 24 def destroy fetch_session .call(token: [Authkeeper.configuration.access_token_name])[:result] &.destroy .delete(Authkeeper.configuration.access_token_name) redirect_to root_path end |