chore: Add authentications controller from Devise

This commit is contained in:
kbe
2025-08-16 21:03:25 +02:00
parent 6a1f1cca9a
commit 9ec13c7d3d
7 changed files with 233 additions and 1 deletions

View File

@@ -0,0 +1,30 @@
# frozen_string_literal: true
class Authentications::OmniauthCallbacksController < Devise::OmniauthCallbacksController
# You should configure your model like this:
# devise :omniauthable, omniauth_providers: [:twitter]
# You should also create an action method in this controller like this:
# def twitter
# end
# More info at:
# https://github.com/heartcombo/devise#omniauth
# GET|POST /resource/auth/twitter
# def passthru
# super
# end
# GET|POST /users/auth/twitter/callback
# def failure
# super
# end
# protected
# The path used when OmniAuth fails
# def after_omniauth_failure_path_for(scope)
# super(scope)
# end
end