-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix for partial birthdates #4369
Conversation
its possible that only a partial birthdate will comeback from the SSOe SAML response, for example the MVI record may only have the user's birth year and not the month or day. When we only have a partial birth date we should return nil. fixes: http://sentry.vfs.va.gov/vets-gov/platform-api-production/issues/130015/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for example the MVI record may only have the user's birth year and not the month or day.
How common is this? Is there any merit to trying to salvage what we do get back from mvi as opposed to returning nil
?
LGTM either way, but wondering what the consequences of this are.
Over the past 6 days, we've seen it happen once over the ~1900 authentication requests we processed, so it's not common. As for returning the data we have, I opted to return |
I think |
it's possible that only a partial birthdate will comeback from the SSOe
SAML response, for example the MVI record may only have the user's birth
year and not the month or day. When we only have a partial birth date
we should return nil.
fixes: http://sentry.vfs.va.gov/vets-gov/platform-api-production/issues/130015/