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

# POST /api/TokenAuth/ExternalAuthenticate

`POST /api/TokenAuth/ExternalAuthenticate`

## Request body

- ExternalAuthenticateModel
  - `authProvider` string, required — Required; Max length 128
  - `providerKey` string, required — Required; Max length 256
  - `providerAccessCode` string, required — Required
  - `returnUrl` string, nullable
  - `singleSignIn` boolean, nullable

## Response `200`

Success

- ExternalAuthenticateResultModel
  - `accessToken` string, nullable
  - `encryptedAccessToken` string, nullable
  - `expireInSeconds` integer
  - `waitingForActivation` boolean
  - `returnUrl` string, nullable
  - `refreshToken` string, nullable
  - `refreshTokenExpireInSeconds` integer

---

[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)
