Auth

Exchange Keycloak code for B2Translate tokens

Exchanges a Keycloak authorization code for B2Translate access/refresh tokens. Implements the BFF half of the OpenID Connect Authorization Code Flow. Cookie auth (WBL-3265): the tokens are set as the HttpOnly cookies `b2t_access` / `b2t_refresh` and are NOT in the body.

POST
/api/v2/auth/sso

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/api/v2/auth/sso" \  -H "Content-Type: application/json" \  -d '{    "code": "eyJhbGciOi...",    "redirect_uri": "http://localhost:4200/auth/sso/callback"  }'
{  "expires_in": 0,  "refresh_expires_in": 0}
Empty
Empty
Empty