mfa

Initiate a new MFA action

This resource can be used to initiate a new MFA action. The resulting token can be used to verify the MFA action.

post/mfa/actions/init

Request

  • Base URL
    https://api.mittwald.de/v1
  • Auth
    none declared

Headers

X-JWTstring

Can be used to authenticate an already existing user. If set, must contain a token issued by this very service.

Request body

object required

Response

The process of activating Multi Factor Authentication is initialized. Now you have to confirm it

barcodestring required

base64 encoded barcode content to scan from your mfa app. e.g. iVBORw0KGgoAAAANSUhEUgAAAMgAAADIEAAAAADYoy.... You\ncan display it with <img src=\"data:image/png;base64,iVBORw0KGgoAAAANSUh..\" />\n

urlstring required

Same as barcode, but in URL form.\n,

Example response

{
  "url": "otpauth://totp/mStudio:test@gmail.com?algorithm=SHA1&digits=6&issuer=mStudio&period=30&secret=HTXT7KJFVNAJUPYWQRWMNVQE5AF5YZI2"
}

Changes

No recorded changes to this operation across all 5 revisions of this API.