---
title: "POST /api/TokenAuth/Authenticate"
method: POST
path: "/api/TokenAuth/Authenticate"
tags: ["TokenAuth"]
---

# POST /api/TokenAuth/Authenticate

`POST /api/TokenAuth/Authenticate`

## Request body

- AuthenticateModel
  - `userNameOrEmailAddress` string, required — Required; Max length 256
  - `password` string, required — Required; Max length 32
  - `twoFactorVerificationCode` string, nullable
  - `rememberClient` boolean
  - `twoFactorRememberClientToken` string, nullable
  - `singleSignIn` boolean, nullable
  - `returnUrl` string, nullable
  - `captchaResponse` string, nullable

## Response `200`

Success

- AuthenticateResultModel
  - `accessToken` string, nullable
  - `encryptedAccessToken` string, nullable
  - `expireInSeconds` integer
  - `shouldResetPassword` boolean
  - `passwordResetCode` string, nullable
  - `userId` integer
  - `requiresTwoFactorVerification` boolean
  - `twoFactorAuthProviders` string[], nullable
  - `twoFactorRememberClientToken` string, nullable
  - `returnUrl` string, nullable
  - `refreshToken` string, nullable
  - `refreshTokenExpireInSeconds` integer
  - `c` string, nullable

---

[API](https://skmtc.dev/dalieu/apis/portaldalieu-api.md) · [All operations](https://skmtc.dev/dalieu/apis/portaldalieu-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/dalieu/portaldalieu-api/revisions/78dcf1621c0e/schema)
