Skip to content

Commit

Permalink
fix controller
Browse files Browse the repository at this point in the history
  • Loading branch information
kcinay055679 committed Feb 27, 2024
1 parent 5ea5f75 commit e2bbafe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/controllers/omniauth_callbacks_controller.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
class OmniauthCallbacksController < Devise::OmniauthCallbacksController
def openid_connect
@user = Person.from_omniauth(request.env['omniauth.auth']).save
@user = Person.from_omniauth(request.env['omniauth.auth'])
@user.save
sign_in_and_redirect @user, event: :authentication # this will throw if @user is not activated
set_flash_message(:notice, :success, kind: 'Keycloak') if is_navigational_format?
end
Expand Down
2 changes: 1 addition & 1 deletion app/helpers/auth_helper.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

module Helper
module AuthHelper
def session_path(_scope)
new_person_session_path
end
Expand Down

0 comments on commit e2bbafe

Please sign in to comment.