Skip to main content

 Services

Web services from /about to /webhooks

authenticators self

/self/authenticators [POST]

Description

Create an authenticator for the signed-in member.

The type parameter allows these values provided they are included in the mfaSupport global property:

  • email-otp for One-Time Passwords sent by email
  • sms-otp for One-Time Passwords sent by email
  • totp for authenticator apps using a Time-based One-Time Password (TOTP) algorithm
  • webauthn for security keys, external devices and built-in authenticators like fingerprint scanners
  • recovery for a batch of 10 single-use backup codes

There are limits on the number of authenticators that each member can have:

  • 10 Webauthn authenticators
  • 3 TOTP authenticators
  • 1 for any of type of authenticators

The phone number is required for sms-otp authenticators and it should use the E164 format including the country code.

The name parameter is optional and can be used in place of the default one.

The email address is optional and can be used as an alternative email address to the one the member is registered to. By the default the email-otp authenticator uses the current email address of the member.

The digits parameter lets you set the length of the code for TOTP authenticator apps. Supported values are 6, 7 and 8.

The algorithm parameter lets you set the algorithm to use for TOTP authenticator apps. Supported values are sha1, sha256 and sha512 .

Beware that many authenticator apps only support the defaults from the TOTP algorithm.

The returned XML is as follows:

 <authenticator-creation>
   <authenticator id="[id]"
           public-id="[public id]"
                name="[name]"
                type="[type]"
              member="[member id]"
            verified="[true|false]"
             created="[created date]"
            [last-used="date last used for authentication"]
               [data="data"] />
 </authenticator-creation>
 

Parameters

NameDescriptionRequiredTypeDefault value
algorithmThe algorithm to use for totp authenticatorsnostringsha1
attachmentHow webauthn is attached (can be 'platform' or 'cross-platform')noenum
digitsThe number of digits of the totp authenticatornostring6
emailThe email address for the email-otp typeconditionalstring
hintsComma-separated list of webauthn hints (can include 'security-key', 'client-device', 'hybrid')nostring
nameThe name of the authenticatorconditionalstring
phoneThe phone number for the sms-otp type, required if type is sms-otpconditionalstring
typeThe type of authenticator to createyesstring

Permission

Only the member themselves can invoke this service.

Response

The returned XML is as follows:

 <authenticator-creation>
   <authenticator id="[id]"
           public-id="[public id]"
                name="[name]"
                type="[type]"
              member="[member id]"
            verified="[true|false]"
             created="[created date]"
            [last-used="date last used for authentication"]
               [data="data"] />
 </authenticator-creation>
 

Error handling

No specific errors expected for this generator.

Created on , last edited on