ccproxy.auth.openai.oauth_client¶
ccproxy.auth.openai.oauth_client
¶
OpenAI OAuth PKCE client implementation.
OpenAIOAuthClient
¶
OpenAI OAuth PKCE flow client.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
settings
|
CodexSettings
|
Codex configuration settings |
required |
token_manager
|
OpenAITokenManager | None
|
Token manager for credential storage |
None
|
Source code in ccproxy/auth/openai/oauth_client.py
authenticate
async
¶
Perform OAuth PKCE flow.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
open_browser
|
bool
|
Whether to automatically open browser |
True
|
Returns:
Type | Description |
---|---|
OpenAICredentials
|
OpenAI credentials |
Raises:
Type | Description |
---|---|
ValueError
|
If authentication fails |