Gerar token de acesso JWT
Autentique usando certificado de cliente X.509 + credenciais OAuth 2.0 (clientId/clientSecret) e receba um token JWT válido por 30 minutos (1800 segundos).
| Header | Tipo | Obrigatório | Descrição |
|---|
X-SSL-Client-Cert | string | Sim | Certificado PEM do cliente codificado em URL (header padrão do NGINX) |
| Campo | Tipo | Obrigatório | Descrição |
|---|
clientId | string | Sim | OAuth 2.0 client ID obtido da criação de credencial |
clientSecret | string | Sim | OAuth 2.0 client secret (8-64 caracteres) |
{
"clientId": "account-93-550e8400",
"clientSecret": "a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6"
}
{
"access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"token_type": "Bearer",
"expires_in": 1800
}
| Status | Descrição |
|---|
| 400 | Requisição inválida ou certificado ausente no header X-SSL-Client-Cert |
| 401 | Credenciais inválidas ou certificado inválido |
O certificado X.509 deve ser enviado URL-encoded no header X-SSL-Client-Cert. O certificado deve estar previamente vinculado a sua conta.