Complete a connection test
POST
/api/v1/tenants/{tenantId}/identity/providers/test/complete
const url = 'https://app.avera.io/api/v1/tenants/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/identity/providers/test/complete';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"code":"example","state":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://app.avera.io/api/v1/tenants/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/identity/providers/test/complete \ --header 'Content-Type: application/json' \ --data '{ "code": "example", "state": "example" }'Authenticated, unlike the login callback: the administrator already has a session, and the verdict is only for the person who started the test.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”tenantId
required
string format: uuid
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
code
required
string
state
required
string
Example generated
{ "code": "example", "state": "example"}Responses
Section titled “Responses”OK
Media type*/*
object
success
required
boolean
message
required
string
email
string | null
displayName
string | null
subject
string | null