Autenticação

Realizar login

Realizar o login a partir de um SSO externo.

post/autenticacao-externa/{origem}

Request

  • Base URL
    https://integracao.cvcrm.com.br/api/v1/cliente
  • URL
    https://integracao.cvcrm.com.br/api/v1/cliente/autenticacao-externa/{origem}
  • Auth
    none declared

Path parameters

origem'winker' | 'app' required

Nome de origem do SSO

Request body

tokenssostring required

Example request

{
  "tokensso": "a2f0d3a57a74cc970b0ce502af9a779e4ff901c6bb1cdbdc99353cde700f5229"
}

Response

Login válido

access_tokenstring required

JWT de para autenticação

token_typestring required

Tipo da autenticação

expires_ininteger required

Tempo em segundos que o token é válido

refresh_tokenstring nullable

Refresh token opaco (rotativo e single-use) para renovar a sessão sem reautenticar, via POST /api/v4/auth/refresh. Ausente quando o login gera token sem expiração (validade = 0).

refresh_token_expires_ininteger nullable

Tempo em segundos que o refresh token é válido (mesma unidade relativa do expires_in). Ausente quando o login gera token sem expiração (validade = 0).

Example response

{
  "access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJodHRwczpcL1wvcmVsYWNpb25hci5jb25zdHJ1dG9yZGV2ZW5kYXMuY29tLmJyIiwic3ViIjoiOTU3OSIsImlhdCI6MTYwOTc4MDMwMSwibmJmIjoxNjA5NzgwMzAxLCJleHAiOjE2MDk3ODM5MDF9.Snlcld9eG-3tp5yeexNPNe2liQcKa789Btqf-RWwY7LmJyQVhO6WriNjZg-ryEkh2DzEzYHcrpsC4OfpYNWm7MY4nN6hPmFWdMKTsrZdes1g6T-IlYi65xHOfg24mD_KSdBzJ1ED_9MtjqocBBWYbOu3MvC4BGslpR2DI9FjA3c",
  "token_type": "Bearer",
  "expires_in": 3600,
  "refresh_token": "9f8c2b1a7d4e5f60a1b2c3d4e5f60718293a4b5c6d7e8f9012345678abcdef01",
  "refresh_token_expires_in": 2592000
}

Changes

No recorded changes to this operation across all 1 revision of this API.