ccproxy.auth.bearer¶
ccproxy.auth.bearer
¶
Bearer token authentication implementation.
BearerTokenAuthManager
¶
Authentication manager for static bearer tokens.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
token
|
str
|
Bearer token string |
required |
Source code in ccproxy/auth/bearer.py
get_access_token
async
¶
Get the bearer token.
Returns:
| Type | Description |
|---|---|
str
|
Bearer token string |
Raises:
| Type | Description |
|---|---|
AuthenticationError
|
If token is invalid |
Source code in ccproxy/auth/bearer.py
get_credentials
async
¶
Bearer tokens do not expose structured credentials.
is_authenticated
async
¶
Check if bearer token is available.
Returns:
| Type | Description |
|---|---|
bool
|
True if token is available, False otherwise |
get_user_profile
async
¶
validate_credentials
async
¶
Validate that credentials are available and valid.
Returns:
| Type | Description |
|---|---|
bool
|
True if credentials are valid, False otherwise |