File size: 1,045 Bytes
dcd54e9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
---
title: registry
sidebarTitle: registry
---

# `fastmcp.server.auth.registry`


Provider registry for FastMCP auth providers.

## Functions

### `register_provider` <sup><a href="https://github.com/jlowin/fastmcp/blob/main/src/fastmcp/server/auth/registry.py#L19" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>

```python
register_provider(name: str) -> Callable[[type[T]], type[T]]
```


Decorator to register an auth provider with a given name.

**Args:**
- `name`: The name to register the provider under (e.g., 'AUTHKIT')

**Returns:**
- The decorated class


### `get_registered_provider` <sup><a href="https://github.com/jlowin/fastmcp/blob/main/src/fastmcp/server/auth/registry.py#L41" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>

```python
get_registered_provider(name: str) -> type[AuthProvider]
```


Get a registered provider by name.

**Args:**
- `name`: The provider name (case-insensitive)

**Returns:**
- The provider class if found, None otherwise