Class: Authkeeper::OmniauthCallbacksController

Inherits:
ApplicationController
  • Object
show all
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

#createObject



22
# File 'app/controllers/authkeeper/omniauth_callbacks_controller.rb', line 22

def create; end

#destroyObject



24
25
26
27
28
29
30
# File 'app/controllers/authkeeper/omniauth_callbacks_controller.rb', line 24

def destroy
  fetch_session
    .call(token: cookies[Authkeeper.configuration.access_token_name])[:result]
    &.destroy
  cookies.delete(Authkeeper.configuration.access_token_name)
  redirect_to root_path
end