Mutation

create_site_login_credential

Adds a new set of login credentials for a given site. This set of credentials is used by scans to crawl areas of the site that are only accessible to registered users. Note that this does not create a new user account on the actual website. The credentials that you specify here must already be valid for the website that you want to scan.

Arguments

input: CreateSiteLoginCredentialInput!

The fields used to add a new set of login credentials for a given site.


Input Fields

site_id(): ID!
The unique identifier of the site for which you want to add a new set of login credentials.
login_credential(): LoginCredentialInput!
The fields used to add a new set of login credentials for a given site.

Return Fields

login_credential(): LoginCredential
The new set of login credentials that were added to the site.

Example

Query
mutation CreateSiteLoginCredential($input: CreateSiteLoginCredentialInput!) {
  create_site_login_credential(input: $input) {
    login_credential {
      label
      username
    }
  }
}
Variables
{
  "input": {
    "login_credential": {
      "label": "Test user",
      "password": "example-password",
      "username": "test.user@example.com"
    },
    "site_id": "1"
  }
}
Result
{
  "data": {
    "create_site_login_credential": {
      "login_credential": {
        "label": "Test user",
        "username": "test.user@example.com"
      }
    }
  }
}