# Registry

This module discovers auth providers and exposes them to the UI/API.

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

### What it does

* discovers `providers/auth/_auth_*.py`
* groups providers for UI rendering
* exposes provider manifests for the UI/API

### When things break

**A provider doesn’t show up**

* import fails
* module doesn’t expose a provider instance/class
* manifest is invalid

**Provider shows up, but UI is weird**

* `html()` output is broken
* grouping rules changed
  {% endtab %}

{% tab title="Power users" %}

### Code map

* `providers/auth/registry.py`

### Public API

* `auth_providers_manifests()`
* `auth_providers_html()`

### Discovery rules (high level)

* find `_auth_*.py`
* import the module
* look for:
  * module-level `PROVIDER`, or
  * a class with `manifest()` (instantiated with no args)

<details>

<summary>Discovery flow (diagram)</summary>

```mermaid
flowchart LR
  UI[UI/API] --> R[auth.registry]
  R -->|discover _auth_*.py| M[import modules]
  M --> P[provider instance/PROVIDER]
  P --> MAN[manifest()/html()]
  MAN --> UI
```

</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/registry.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.
