Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Register users in Cabinet via integrated system of digital identification.

Endpoints used for integration is described here

Sequence diagram

https://sequencediagram.org

...

  1. Get AuthRequest from in-memory DB
  2. Validate AuthRequest:
    1. if AuthRequest not found - return 401 error
    2. if AuthRequest expired - return 401 error
  3. Validate reCAPTCHA token (state):
    1. if invalid - return 401 error
  4. Exchange authorization code to access token in id.gov.ua ua (API documentation)
  5. Get User Info (tax_id, first_name, last_name, email) by access token from id.gov.ua (API documentation

Mithril: Create UserRequest 

...