labbsr0x / convid-accounts-backend

Accounts microservice for Convid remote access solution. This microservice handles Accounts and Machine registrations.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Return the TOTP certificate for machine during machine creation (POST /machine)

flaviostutz opened this issue · comments

This TOTP will be challenged for all tokens generation not in machine creation and without a refresh token. The TOTP challenge is used on client side, where there is no Refresh Token and TOTP is required each X minutes.

Accounts POST /machine
OUT machineId
OUT machinePort=23433

OUT token=BBCCCHHH3333
OUT id=ABC123

OUT totpKey=AAABBB (issue #12 for this, may not be present)
OUT machinePort=23433
OUT accessToken=AABBCC33225
OUT refreshToken=EAEJRHEG

accessToken:
scope: machine-ABC123 remoteFw-127.0.0.1:23433