Account e autenticazione
POST /Token
| Voce | Valore |
|---|---|
| Descrizione | Emette un access token OAuth 2.0 (password grant) |
| Autenticazione | Nessuna |
| Content-Type | application/x-www-form-urlencoded |
| Parametri | grant_type=password, username, password |
| Risposta 200 | access_token, token_type, expires_in, userName, .issued, .expires |
Esempi completi: Autenticazione.
GET /api/Account/TokenInfo
| Voce | Valore |
|---|---|
| Descrizione | Informazioni associate al token della richiesta |
| Autenticazione | Bearer |
| Parametri | Nessuno |
| Risposta | 200 con le informazioni del token; 401 se il token manca o non è valido |
curl "<BASE_URL>/api/Account/TokenInfo" -H "Authorization: Bearer <ACCESS_TOKEN>"