Skip to content

Commit 9cb7b1e

Browse files
Merge pull request #2343 from NCCE/3009-auth-custom-claim-capture-v2
CRUP Debugging - data capture
2 parents 1fb9b76 + 0c82a99 commit 9cb7b1e

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

app/controllers/auth_controller.rb

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,14 @@ def callback
1919
Achiever::FetchUsersCompletedCoursesFromAchieverJob.perform_later(user)
2020
rescue => e
2121
Sentry.with_scope do |scope|
22-
scope.set_context("oauth_custom_claim", auth&.info)
22+
scope.set_context("CustomClaim", {
23+
email: auth.info.email,
24+
first_name: auth.info.first_name,
25+
last_name: auth.info.last_name,
26+
stem_achiever_contact_no: auth.info.achiever_contact_no,
27+
auth0_id: auth.uid,
28+
stem_user_id: auth.info.stem_user_id
29+
})
2330
Sentry.capture_exception(e)
2431
end
2532

0 commit comments

Comments
 (0)