codex·agy OAuth 계정 연결 지원 (ChatGPT/Antigravity 네이티브 어댑터)
Some checks failed
API contract / OpenAPI type drift (push) Failing after 1m0s
Some checks failed
API contract / OpenAPI type drift (push) Failing after 1m0s
omniroute와 동일하게 공개 클라이언트 자격증명으로 서버사이드 OAuth 교환을 제공한다. 관리자가 제공자 로그인 후 브라우저에 남는 code를 붙여넣으면 토큰·refresh token·메타데이터(account-id, Code Assist project)를 저장하고 게이트웨이에 push한다. - codex_api 어댑터: chatgpt.com/backend-api/codex/responses (Responses SSE, 401 시 refresh token으로 자가 갱신) - antigravity_api 어댑터: cloudcode-pa v1internal:streamGenerateContent (Gemini 형식 SSE, loadCodeAssist로 프로젝트 발급, 401 자가 갱신) - 자격증명 저장소에 refresh_token_encrypted·extra 컬럼 추가(부트스트랩 SQL 포함), 게이트웨이 push가 구조화 자격증명을 전달
This commit is contained in:
parent
1a925b33e0
commit
45b84faa0d
10 changed files with 581 additions and 18 deletions
|
|
@ -47,7 +47,7 @@ class StartOAuthTest(unittest.TestCase):
|
|||
|
||||
def test_unsupported_provider_rejected(self):
|
||||
with self.assertRaises(svc.ProviderCredentialError):
|
||||
svc.start_oauth("codex", "admin@example.com")
|
||||
svc.start_oauth("solar", "admin@example.com")
|
||||
|
||||
def test_claude_authorize_url_contains_pkce_and_state(self):
|
||||
result = svc.start_oauth("claude", "admin@example.com")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue