{
  "id": "square_oauth_secret",
  "kind": "datatype",
  "status": "draft",
  "name": "Square OAuth application secret",
  "doc": "Application secret of a Square developer application, which the application uses to exchange OAuth authorization codes for access tokens. It starts with sq0csp- followed by 43 characters. It is a different credential from a Square access token. Examples are left out because GitHub push protection rejects token-shaped values, even constructed ones.",
  "parent": "api_key",
  "is_pii": false,
  "categories": [
    "secrets"
  ],
  "langs": [
    "common"
  ],
  "classification": "identifier",
  "regexp": "^sq0csp-[A-Za-z0-9_-]{43}$",
  "examples": [
    {
      "value": "sq0csp-ExampleSecretTooShort",
      "description": "Too short",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "other",
      "url": "https://github.com/Yelp/detect-secrets/blob/master/detect_secrets/plugins/square_oauth.py"
    }
  ],
  "detected_by": {
    "tools": [
      "detectsecrets",
      "semgrep",
      "trufflehog"
    ]
  },
  "quality": {
    "score": 63,
    "missing": [
      "examples",
      "authoritative source link",
      "mapping (Wikidata, Schema.org, ...)",
      "translation"
    ]
  },
  "source": {
    "path": "data/datatypes/any/secrets/square_oauth_secret.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/any/secrets/square_oauth_secret.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/secrets/square_oauth_secret.yaml"
  },
  "urls": {
    "html": "http://registry.apicrafter.io/datatype/square_oauth_secret",
    "json": "http://registry.apicrafter.io/api/v1/datatypes/square_oauth_secret.json"
  }
}