mirror of
https://github.com/openai/codex.git
synced 2026-11-13 14:46:14 +00:00
Expose onboarding hints in login completion notifications (#36635)
## What changed - Accept the allowlisted `.onboarding_entrypoint=life_sciences` suffix on a valid OAuth state while continuing to reject unknown or malformed suffixes. - Return the parsed callback metadata from the login server without including the suffix in the token exchange redirect URI. - Add the optional `onboardingEntrypoint` field and `life_sciences` value to the v2 `account/login/completed` notification and generated protocol exports. ## Testing - Cover valid, invalid, and repeated OAuth state suffixes. - Verify the end-to-end login callback result, token redirect URI, and app-server notification payload. GitOrigin-RevId: c2ee146328ddd43c03a503260d5d492e186fa889
This commit is contained in:
1 parent
9949245d1d
commit
5157493c23
20 files changed
+292
-42
No files matched your search
@@ -672,4 +672,13 @@ pub struct AccountLoginCompletedNotification {
|
||||
pub login_id: Option<String>,
|
||||
pub success: bool,
|
||||
pub error: Option<String>,
|
||||
pub onboarding_entrypoint: Option<DesktopOnboardingEntrypoint>,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug, Clone, Copy, PartialEq, Eq, JsonSchema, TS)]
|
||||
#[serde(rename_all = "snake_case")]
|
||||
#[ts(rename_all = "snake_case")]
|
||||
#[ts(export_to = "v2/")]
|
||||
pub enum DesktopOnboardingEntrypoint {
|
||||
LifeSciences,
|
||||
}
|
||||
Reference in new issue
Block a user