init push - laying out the project

This commit is contained in:
Mike Sutton
2022-11-12 02:27:46 +01:00
commit 14e163a1a5
183 changed files with 20069 additions and 0 deletions

View File

@ -0,0 +1,15 @@
# frozen_string_literal: true
module Users
class OmniauthCallbacksController < Devise::OmniauthCallbacksController
def keycloakopenid
Rails.logger.debug(request.env['omniauth.auth'])
@user = User.find_or_create_from_auth_hash(request.env['omniauth.auth'])
sign_in_and_redirect @user, event: :authentication
end
def failure
redirect_to root_path
end
end
end