WebAuthn


Parameters

Name In Type Required Description
body body WebAuthnRegistrationRequest true ‘none’

Request body - instance of WebAuthnRegistrationRequest

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
{
  "username": "string",
  "user_verification": "string",
  "attestation": "string",
  "attachment": "string",
  "algorithms": [
    "string"
  ],
  "discoverable_credential": "string"
}
Name Type Required Description
username string false none
user_verification string false none
attestation string false none
attachment string false none
algorithms [string] false none
discoverable_credential string false none

Request example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15

curl -X POST https://authn.masstack.com/v1/webauthn/registration/options \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
 --data-raw "{
  'username': 'string',
  'user_verification': 'string',
  'attestation': 'string',
  'attachment': 'string',
  'algorithms': [
    'string'
  ],
  'discoverable_credential': 'string'
}" 

Responses

Code Meaning Description Schema
200 OK Successful response WebAuthnRegistrationResponse

Parameters

Name In Type Required Description
body body WebAuthnVerifyRequest true ‘none’

Request body - instance of WebAuthnVerifyRequest

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
{
  "username": "string",
  "response": {
    "id": "string",
    "rawId": "string",
    "response": {
      "attestationObject": "string",
      "clientDataJSON": "string",
      "transports": [
        "string"
      ],
      "publicKeyAlgorithm": 0,
      "publicKey": "string",
      "authenticatorData": "string"
    },
    "type": "string",
    "clientExtensionResults": {},
    "authenticatorAttachment": "string"
  }
}
Name Type Required Description
username string false none
response object false none
» id string false none
» rawId string false none
» response object false none
»» attestationObject string true none
»» clientDataJSON string true none
»» transports [string] true none
»» publicKeyAlgorithm integer true none
»» publicKey string true none
»» authenticatorData string true none
» type string false none
» clientExtensionResults object false none
» authenticatorAttachment string false none

Request example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25

curl -X POST https://authn.masstack.com/v1/webauthn/registration/verify \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
 --data-raw "{
  'username': 'string',
  'response': {
    'id': 'string',
    'rawId': 'string',
    'response': {
      'attestationObject': 'string',
      'clientDataJSON': 'string',
      'transports': [
        'string'
      ],
      'publicKeyAlgorithm': 0,
      'publicKey': 'string',
      'authenticatorData': 'string'
    },
    'type': 'string',
    'clientExtensionResults': {},
    'authenticatorAttachment': 'string'
  }
}" 

Responses

Code Meaning Description Schema
200 OK Successful verification WebAuthnVerifyResponse

Parameters

Name In Type Required Description
body body WebAuthnAuthenticationOptionsRequest true ‘none’

Request body - instance of WebAuthnAuthenticationOptionsRequest

1
2
3
4
{
  "username": "string",
  "user_verification": "string"
}
Name Type Required Description
username string false none
user_verification string false none

Request example

1
2
3
4
5
6
7
8
9

curl -X POST https://authn.masstack.com/v1/webauthn/authentication/options \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
 --data-raw "{
  'username': 'string',
  'user_verification': 'string'
}" 

Responses

Code Meaning Description Schema
200 OK Successful response WebAuthnAuthenticationOptionsResponse

Parameters

Name In Type Required Description
body body WebAuthnAuthenticationVerificationRequest true ‘none’

Request body - instance of WebAuthnAuthenticationVerificationRequest

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
{
  "username": "string",
  "response": {
    "id": "string",
    "rawId": "string",
    "response": {
      "authenticatorData": "string",
      "clientDataJSON": "string",
      "signature": "string",
      "userHandle": "string"
    },
    "type": "string",
    "clientExtensionResults": {},
    "authenticatorAttachment": "string"
  }
}
Name Type Required Description
username string true none
response object true none
» id string true none
» rawId string true none
» response object true none
»» authenticatorData string true none
»» clientDataJSON string true none
»» signature string true none
»» userHandle string false none
» type string true none
» clientExtensionResults object false none
» authenticatorAttachment string false none

Request example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21

curl -X POST https://authn.masstack.com/v1/webauthn/authentication/verification \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
 --data-raw "{
  'username': 'string',
  'response': {
    'id': 'string',
    'rawId': 'string',
    'response': {
      'authenticatorData': 'string',
      'clientDataJSON': 'string',
      'signature': 'string',
      'userHandle': 'string'
    },
    'type': 'string',
    'clientExtensionResults': {},
    'authenticatorAttachment': 'string'
  }
}" 

Responses

Code Meaning Description Schema
200 OK Successful verification WebAuthnAuthenticationVerificationResponse

Endpoints

TokenInfo

    OAuth2

      Magic Links

        CIBA

          WebAuthn

            Device Code