mirror of
https://github.com/openai/codex.git
synced 2026-11-21 07:09:23 +00:00
Expose effective login methods in config requirements (#45495)
## Why Configuration requirements did not report which login methods the running app server permits after applying managed policy, forced login settings, and workspace restrictions. ## What changed - Add `allowedLoginMethods` to `configRequirements/read`, using the running authentication manager's effective policy rather than newly read authentication settings. - Return requirements when login methods are restricted even without managed requirements, while preserving `requirements: null` for the unrestricted default. - Update protocol schemas and generated TypeScript and Python types. An empty list permits no login method; older servers may omit the field. ## Testing Add coverage for managed and forced login restrictions, workspace intersections, policy reporting after requirements files change, invalid login methods, and API-only Amazon Bedrock without ChatGPT requests. Extend tests for conflicting authentication requirements and cloud policy precedence. GitOrigin-RevId: 56c0767a74143e793aac2ac165d0cbe98a09469b
This commit is contained in:
1 parent
d3812ddbb3
commit
a20092a7a2
16 files changed
+355
-31
No files matched your search
+17
@@ -414,6 +414,16 @@
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"allowedLoginMethods": {
|
||||
"description": "Effective login methods after managed, forced-login, and workspace restrictions. An empty list permits no login method. Older servers may omit this field.",
|
||||
"items": {
|
||||
"$ref": "#/definitions/ForcedLoginMethod"
|
||||
},
|
||||
"type": [
|
||||
"array",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"allowedPermissionProfiles": {
|
||||
"additionalProperties": {
|
||||
"type": "boolean"
|
||||
@@ -762,6 +772,13 @@
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"ForcedLoginMethod": {
|
||||
"enum": [
|
||||
"chatgpt",
|
||||
"api"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"InAppBrowserRequirements": {
|
||||
"properties": {
|
||||
"allowExternalBrowserSettingsImport": {
|
||||
|
||||
Reference in new issue
Block a user