There was an error while loading. Please reload this page.
1 parent 1f08770 commit 8276ab8Copy full SHA for 8276ab8
plugin.rb
@@ -25,6 +25,19 @@ def can_connect_existing_user?
25
def enabled?
26
SiteSetting.openid_connect_enabled
27
end
28
+
29
+ def after_authenticate(auth_token, existing_account: nil)
30
+ Rails.logger.info("after_authenticate called")
31
+ result = super(auth_token, existing_account: existing_account)
32
+ if existing_account
33
+ association = UserAssociatedAccount.find_by(user_id: existing_account.id, provider_name: auth_token[:provider], provider_uid: auth_token[:uid])
34
+ if association.nil?
35
+ Rails.logger.info("no associated_account found for this uuid")
36
+ end
37
38
39
+ result
40
41
42
def register_middleware(omniauth)
43
0 commit comments