From d1292073477c6f57a7e2d0d7f2cc2ceaef1aa6eb Mon Sep 17 00:00:00 2001 From: Michael Squance Date: Tue, 11 Mar 2025 12:19:13 +0000 Subject: [PATCH 1/2] Extracing specific data to see if that makes it work --- app/controllers/auth_controller.rb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app/controllers/auth_controller.rb b/app/controllers/auth_controller.rb index 043dec390d..f51e466369 100644 --- a/app/controllers/auth_controller.rb +++ b/app/controllers/auth_controller.rb @@ -19,7 +19,14 @@ def callback Achiever::FetchUsersCompletedCoursesFromAchieverJob.perform_later(user) rescue => e Sentry.with_scope do |scope| - scope.set_context("oauth_custom_claim", auth&.info) + scope.set_context("CustomClaim", { + email: auth.info.email, + first_name: auto.info.first_name, + last_name: auto.info.last_name, + stem_achiever_contact_no: auth.info.achiever_contact_no, + auth0_id: auth.uid, + stem_user_id: auth.info.stem_user_id + }) Sentry.capture_exception(e) end From 0c82a99ee09ad1e05c16f4821c70aefc72f3b0df Mon Sep 17 00:00:00 2001 From: Michael Squance Date: Tue, 11 Mar 2025 12:34:54 +0000 Subject: [PATCH 2/2] Fixing typo --- app/controllers/auth_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/auth_controller.rb b/app/controllers/auth_controller.rb index f51e466369..cde28653ee 100644 --- a/app/controllers/auth_controller.rb +++ b/app/controllers/auth_controller.rb @@ -21,8 +21,8 @@ def callback Sentry.with_scope do |scope| scope.set_context("CustomClaim", { email: auth.info.email, - first_name: auto.info.first_name, - last_name: auto.info.last_name, + first_name: auth.info.first_name, + last_name: auth.info.last_name, stem_achiever_contact_no: auth.info.achiever_contact_no, auth0_id: auth.uid, stem_user_id: auth.info.stem_user_id