Skip to main content

Verifying authentication via Duo method

POST 

https://sailpoint.api.identitynow.com/beta/mfa/duo-web/verify

This API Authenticates the user via Duo-Web MFA method.

Request

Bodyrequired

    userIdstringrequired

    User id for Verification request.

    Example: 2c9180947f0ef465017f215cbcfd004b
    signedResponsestringrequired

    User id for Verification request.

    Example: AUTH|d2lsbC5hbGJpbnxESTZNMFpHSThKQVRWTVpZN0M5VXwxNzAxMjUzMDg5|f1f5f8ced5b340f3d303b05d0efa0e43b6a8f970:APP|d2lsbC5hbGJpbnxESTZNMFpHSThKQVRWTVpZN0M5VXwxNzAxMjU2NjE5|cb44cf44353f5127edcae31b1da0355f87357db2

Responses

The status of verification request.

Schema
    requestIdstringnullable

    The verificationPollRequest request ID

    Example: 089899f13a8f4da7824996191587bab9
    statusstring

    MFA Authentication status

    Possible values: [PENDING, SUCCESS, FAILED, LOCKOUT, NOT_ENOUGH_DATA]

    Example: SUCCESS
    errorstringnullable

    Error messages from MFA verification request

    Example: Unable to connect DUO Service during verification

Authorization: oauth2

type: Personal Access Token
scopes: idn:mfa:verify
package main

import (
"fmt"
"strings"
"net/http"
"io"
)

func main() {

url := "https://sailpoint.api.identitynow.com/beta/mfa/duo-web/verify"
method := "POST"

payload := strings.NewReader(`{
"userId": "2c9180947f0ef465017f215cbcfd004b",
"signedResponse": "AUTH|d2lsbC5hbGJpbnxESTZNMFpHSThKQVRWTVpZN0M5VXwxNzAxMjUzMDg5|f1f5f8ced5b340f3d303b05d0efa0e43b6a8f970:APP|d2lsbC5hbGJpbnxESTZNMFpHSThKQVRWTVpZN0M5VXwxNzAxMjU2NjE5|cb44cf44353f5127edcae31b1da0355f87357db2"
}`)

client := &http.Client {
}
req, err := http.NewRequest(method, url, payload)

if err != nil {
fmt.Println(err)
return
}
req.Header.Add("Content-Type", "application/json")
req.Header.Add("Accept", "application/json")
req.Header.Add("Authorization", "Bearer <TOKEN>")

res, err := client.Do(req)
if err != nil {
fmt.Println(err)
return
}
defer res.Body.Close()

body, err := io.ReadAll(res.Body)
if err != nil {
fmt.Println(err)
return
}
fmt.Println(string(body))
}
Request Collapse all
Base URL
https://sailpoint.api.identitynow.com/beta
Auth
Body required
{
  "userId": "2c9180947f0ef465017f215cbcfd004b",
  "signedResponse": "AUTH|d2lsbC5hbGJpbnxESTZNMFpHSThKQVRWTVpZN0M5VXwxNzAxMjUzMDg5|f1f5f8ced5b340f3d303b05d0efa0e43b6a8f970:APP|d2lsbC5hbGJpbnxESTZNMFpHSThKQVRWTVpZN0M5VXwxNzAxMjU2NjE5|cb44cf44353f5127edcae31b1da0355f87357db2"
}
ResponseClear

Click the Send API Request button above and see the response here!