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
//! OAuth 2.1 Implementation
//!
//! This module provides an OAuth 2.1 implementation with:
//! - Authorization Code flow with PKCE (RFC 7636)
//! - Refresh tokens
//! - Resource Indicators (RFC 8707) - **MCP Required**
//! - Protected Resource Metadata (RFC 9728) - **MCP Required**
//! - Dynamic Client Registration (RFC 7591)
//! - DPoP integration (RFC 9449)
//!
//! ## Submodules
//!
//! - `client` - OAuth2Client for basic operations
//! - `resource` - RFC 8707 Resource Indicators (MCP required)
//! - `validation` - URI and security validation
//!
//! ## MCP Compliance
//!
//! This implementation follows MCP specification requirements:
//! - RFC 8707 resource parameters MUST be included in all OAuth flows
//! - Tokens MUST be bound to specific MCP servers via audience claims
//! - PKCE MUST be used for authorization code flows
// Re-export client types
pub use OAuth2Client;
// Re-export HTTP client adapter
pub use OAuth2HttpClient;
// Re-export DCR types (RFC 7591)
pub use ;
// Re-export resource validation (RFC 8707)
pub use validate_resource_uri;
// Re-export validation functions
pub use *;