---
title: "Check auth configuration"
method: POST
path: "/auth"
---

# Check auth configuration

`POST /auth`

Validate credentials for a registry and, if available, get an identity token for accessing the registry without password.

## Request body

- AuthConfig
  - `Username` string
  - `Password` string
  - `Auth` string
  - `ServerAddress` string
  - `IdentityToken` string — IdentityToken is used to authenticate the user and get an access token for the registry
  - `RegistryToken` string — RegistryToken is a bearer token to be sent to a registry

## Response `200`

An identity token was generated successfully.

- AuthResponse — The response returned by login to a registry
  - `Status` string, required — The status of the authentication
  - `IdentityToken` string — An opaque token used to authenticate a user after a successful login

## Other responses

- `401` — An unexpected 401 error occurred.
- `500` — An unexpected server error occurred.

---

[API](https://skmtc.net/aliyun/apis/pouch-engine-api.md) · [All operations](https://skmtc.net/aliyun/apis/pouch-engine-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aliyun/pouch-engine-api/versions/36d75b2825fc/schema)
