forked from mirrors/kingfisher
37 lines
1.1 KiB
YAML
37 lines
1.1 KiB
YAML
rules:
|
|
- name: Mercado Pago Access Token
|
|
id: kingfisher.mercadopago.1
|
|
pattern: |
|
|
(?x)
|
|
\b
|
|
(
|
|
APP_USR-[A-Za-z0-9]{6,20}(?:-[A-Za-z0-9]{4,64}){2,4}
|
|
)
|
|
\b
|
|
pattern_requirements:
|
|
min_digits: 4
|
|
min_entropy: 3.5
|
|
confidence: medium
|
|
examples:
|
|
- APP_USR-9032451187654321-040126-1a2b3c4d5e6f7081920a1b2c3d4e5f60-5729013384
|
|
- 'token = "APP_USR-7812450099887766-120125-b4c35d6e7f8091a2b3c4d5e6f708192a-6419027731"'
|
|
references:
|
|
- https://www.mercadopago.com.ar/developers/en
|
|
- https://developers.mercadolibre.com.ar/es_ar/registra-tu-aplicacion/producto-consulta-usuarios
|
|
validation:
|
|
type: Http
|
|
content:
|
|
request:
|
|
method: GET
|
|
url: https://api.mercadolibre.com/users/me
|
|
headers:
|
|
Authorization: "Bearer {{ TOKEN }}"
|
|
Accept: application/json
|
|
response_matcher:
|
|
- report_response: true
|
|
- type: StatusMatch
|
|
status: [200]
|
|
- type: JsonValid
|
|
- type: WordMatch
|
|
words:
|
|
- '"id"'
|