Get auth configs API in Website Scanner
Use this API to get a list of auth configs created for your website scans.
get auth configs
Request parameters
Request
curl -u "YOUR_USERNAME:YOUR_ACCESS_KEY" \
https://api-accessibility.browserstack.com/api/website-scanner/v1/auth_configs
-
No parameter required.
Response Attributes 200 OK
JSON
Response
{
"success": true,
"data": {
"authConfigs": [
{
"id": 1560,
"name": "sampleform",
"type": "form",
"authData": {
"url": "https://sampleurl.com",
"username": "sample@sample.com",
"password": "sample_password",
"usernameSelector": "input[name=\"userName\"]",
"passwordSelector": "input[name=\"password\"]",
"submitSelector": "button[type=\"submit\"]"
}
}
{
"id": 1561,
"name": "samplebasic",
"type": "basic",
"data": {
"username": "sample@sample.com",
"password": "sample_password"
}
}
]
}
}
-
success Boolean
True, if the auth config exists.
-
data Array
A list of auth configs, which can be basic auth or form auth.
We're sorry to hear that. Please share your feedback so we can do better
Contact our Support team for immediate help while we work on improving our docs.