Repository navigation
STF-1906: Add phone verification inputs to minFraud #6
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
base: main
Are you sure you want to change the base?
Changes from all commits
25b86c5
4cf5879
f662b29
30399f3
5f17866
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| bundled/** linguist-generated=true |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -113,6 +113,7 @@ schemas: | |
| time: | ||
| type: string | ||
| format: date-time | ||
| pattern: "^\\d{4}-\\d{2}-\\d{2}T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z|[+-]([01]\\d|2[0-3]):[0-5]\\d)$" | ||
| description: >- | ||
| The time the event occurred, in RFC 3339 format. If you omit this | ||
| field, MaxMind uses the time it receives the request. MaxMind does not | ||
|
|
@@ -246,6 +247,45 @@ schemas: | |
| description: >- | ||
| The phone number, without the country code. MaxMind strips punctuation | ||
| characters. After that, the number must contain only digits. | ||
| phone_verification_method: | ||
| type: string | ||
| enum: | ||
| - network | ||
| - delivered_code | ||
| - other | ||
| description: >- | ||
| The method used for the most recent verification attempt of the phone | ||
| number. Do not include this field if no verification was attempted. | ||
|
|
||
|
|
||
| - `network`: carrier or SIM-based silent network authentication. No | ||
| code is sent to the device. | ||
|
|
||
| - `delivered_code`: a one-time code delivered to the phone number by | ||
| SMS, an automated voice call, or an over-the-top messaging channel | ||
| such as WhatsApp or RCS, and entered by the user. | ||
|
|
||
| - `other`: a method not listed above, such as flash or missed call | ||
| verification, or a method you do not know because a third party | ||
| performed the check. | ||
| phone_verification_time: | ||
| type: string | ||
| format: date-time | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
The server then returns Suggestion: add a 🤖 Comment by Claude Opus 5.5.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done in f662b29. Both Reply by Claude Opus 5.5 on Greg's behalf. |
||
| pattern: "^\\d{4}-\\d{2}-\\d{2}T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z|[+-]([01]\\d|2[0-3]):[0-5]\\d)$" | ||
| description: >- | ||
| The most recent date and time a verification of the phone number was | ||
| attempted, if known, in RFC 3339 date-time format. The time must not | ||
| be before 1970-01-01T00:00:00Z or more than two days in the future. | ||
| For a time outside this range, MaxMind ignores the input and returns a | ||
| warning. | ||
| phone_was_verification_successful: | ||
| type: boolean | ||
| description: >- | ||
| Whether the most recent verification that the end user controls this | ||
| phone number was successful, using the method named in | ||
| `phone_verification_method`. `true` if the phone verification was | ||
| successful, or `false` if the user failed phone verification. Do not | ||
| include this field if you have not performed this check. | ||
| postal: | ||
| type: string | ||
| maxLength: 255 | ||
|
|
||
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.
The real target is
specs/minfraud.yaml(info.version: 0.1.0) andCHANGELOG.md, which are not in the diff.This PR adds three request fields but does not change
info.versionor add a changelog entry. The README says thatinfo.versionfollows SemVer and tracks changes to the spec. No tag or release exists yet, so this is fine if 0.1.0 is still unreleased. But mm_website already uses a pseudo-version of this module, so two different minFraud documents will both say 0.1.0. Is the plan to bump to 0.2.0 (with a changelog entry) at the first release, or now?🤖 Comment by Claude Opus 5.5.
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.
We will leave
info.versionat 0.1.0. Nothing is tagged or released yet, so the first release sets the version and adds the changelog entry.Reply by Claude Opus 5.5 on Greg's behalf.