...
Register users in Cabinet via integrated system of digital identification.
Endpoints used for integration is described here
Sequence diagram
...
- Get AuthRequest from in-memory DB
- Validate AuthRequest:
- if AuthRequest not found - return 401 error
- if AuthRequest expired - return 401 error
- Validate reCAPTCHA token (state):
- if invalid - return 401 error
- Exchange authorization code to access token in id.gov.ua ua (API documentation)
- Get User Info (tax_id, first_name, last_name, email) by access token from id.gov.ua (API documentation)
Mithril: Create UserRequest
...