# \_auth\_EMBY

Emby authentication provider (server URL + user token).

{% tabs %}
{% tab title="End users" %}

### What this auth provider does

Stores Emby connection details so CrossWatch can call the Emby API.

### Auth flow

* `token` (user supplies token / CrossWatch stores it)

### Writes to config

Namespace:

* `cfg[\"emby\"]`

Common fields:

* server URL
* user id
* access token / api key

### Related docs

* UI setup: [Auth: Emby](/crosswatch/providers/authentication/auth-media-servers/auth-emby.md)
* Adapter: [Adapter: Emby](/crosswatch/providers/synchronization/adapter-emby.md)
* Sync module: [Emby module](/blueprint-architecture/sync/_mod_emby.md)

### Gotchas

* Token must be for the user you want to sync.
* Sync support can differ from auth capability hints.
  * Example: ratings are not supported by the Emby sync module right now.
    {% endtab %}

{% tab title="Power users" %}

### Code map

* `providers/auth/_auth_EMBY.py`

### Public surface

* class: `EmbyAuth`
* functions: `log()`, `html()`

### External endpoints

* `http://host:8096/` (example base URL)

### Capabilities

<details>

<summary>Capabilities (raw)</summary>

```json
{
  "features": {
    "watchlist": {
      "read": true,
      "write": true
    },
    "ratings": {
      "read": true,
      "write": true
    },
    "watched": {
      "read": true,
      "write": true
    },
    "playlists": {
      "read": true,
      "write": true
    }
  },
  "entity_types": [
    "movie",
    "show",
    "episode"
  ]
}
```

</details>
{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://wiki.crosswatch.app/blueprint-architecture/auth/_auth_emby.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
