With the move to integer claims in #2046, IdG will return error codes in place of True (0) or False (1) when an error occurs in processing the user's eligibility. Any integer that is greater than or equal to 10 is considered an error code.
We want to improve our analytics around the auth flow, in particular to capture any errors that occur as described by IdG error codes.
Acceptance Criteria
[x] The FinishedSignInEvent is updated to allow an optional error_code event property.
[x] The error_code property is the integer value of the claim error code (originally transmitted as a string)
Additional context
In #2046, we will handle the regular True (0) / False (1) cases.
This issue has been scoped back to exclude lookup of the error message associated with a given code. This needs further discussion and design with CDT.
With the move to integer claims in #2046, IdG will return error codes in place of True (
0
) or False (1
) when an error occurs in processing the user's eligibility. Any integer that is greater than or equal to10
is considered an error code.We want to improve our analytics around the auth flow, in particular to capture any errors that occur as described by IdG error codes.
Acceptance Criteria
FinishedSignInEvent
is updated to allow an optionalerror_code
event property.error_code
property is the integer value of the claim error code (originally transmitted as a string)Additional context
In #2046, we will handle the regular True (
0
) / False (1
) cases.This issue has been scoped back to exclude lookup of the error message associated with a given code. This needs further discussion and design with CDT.