The idea is simple: Make the state DMV/MVA or country's embassy verify the ID.
It goes like this:
- Site contacts agency to generate token and redirect URL, giving return URLs and age/drinking requirements
- Site has user browser redirect
- Agency securely checks ID, logs results.
- Agency redirects to site URL.
- Site contacts agency to follow up, get result code
- Site acts accordingly.
Result codes are:
200 OK: Person verified as legal adult.
400 Bad Request: Token not registered
403 Forbidden: Person is legal adult but has court order against access
404 Not Found: Person unknown
410 Gone: Person is dead
425 Too Early: Person is underage
451 Unavail/Legal: Site banned
Site may only store 200, 403, and 410 results. Site must verify 403 and 451 error codes with site's legal team. All other codes must not be stored and must be rechecked every time the user attempts access.