You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Solution has two services and one database module:
bank-service provides bank services: Cash deposit, Cash withdrawal, Check balance, etc.
atm-service simple client for bank-service.
atm-db postgres database docker image.
To access atm-service two-step authentication is needed, finally atm-service generates limited time access token.
/api/authentication/initiate method checks if card is valid and generates access token which is valid only for accessing finalize method.
/api/authentication/finalize method validates card preferred authentication method (PIN, fingerprint etc.), and generates access token which is valid for accessing rest of the atm services.
After finalizing authentication JWT token payload looks like: