Test a provider's dynamic token auth

Runs the token fetch once, backend-side, and reports the token lifetime. The token itself is never returned. Send provider_id to test the stored config, auth_config to test submitted values, or both to resolve secret sentinels against the stored config.

Request

This endpoint expects an object.
provider_idstringOptionalformat: "uuid"

Test the stored auth config of this provider; also the sentinel-resolution target when auth_config is sent

auth_configobjectOptional

Dynamic token auth recipe. Send the ‘SECRET’ sentinel as a credential value to keep the stored secret; send an empty object to clear the auth config.

Response

Token fetched
namestringOptional
currentdoubleOptional
previousdoubleOptional

Errors

400
Bad Request Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error