# OAuthProvider

> **Class** in `deepagents_cli`

📖 [View in docs](https://reference.langchain.com/python/deepagents-cli/mcp_providers/base/OAuthProvider)

Base class for provider-specific OAuth dispatch.

Subclasses override `matches` plus whichever of `client_metadata`
and `run_login` they customize. The default implementations cover
the spec-compliant Authorization Code + PKCE + Dynamic Client
Registration path.

## Signature

```python
OAuthProvider()
```

## Extends

- `ABC`

## Methods

- [`matches()`](https://reference.langchain.com/python/deepagents-cli/mcp_providers/base/OAuthProvider/matches)
- [`client_metadata()`](https://reference.langchain.com/python/deepagents-cli/mcp_providers/base/OAuthProvider/client_metadata)
- [`run_login()`](https://reference.langchain.com/python/deepagents-cli/mcp_providers/base/OAuthProvider/run_login)

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/64d45f67c86edb4df2ced0e7b82f1a8fd158ec8c/libs/cli/deepagents_cli/mcp_providers/base.py#L35)