You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Request]: Describe principal providers truthfully in OpenAPI security schemes #1047
Source review of main df0cfd5 found a remaining provider-specific assumption after #888/#893: packages/core/src/openapi.ts maps every providesPrincipal gate to {type:'apiKey', in:'cookie', name:'session'}. The description says session is a placeholder, but the machine-readable scheme still declares that literal cookie. providesPrincipal does not require a cookie/session credential; a bearer or other operator-installed verifier can provide identity too.
This is a source-confirmed OpenAPI interoperability gap, not a runtime authentication bypass. I did not execute a generated client in this follow-up. Even for the default auth provider, the placeholder is not its actual configured cookie name.
Proposed behavior and alternatives
Allow bounded provider/operator-owned standard OpenAPI security metadata where it is known, separate from providesPrincipal and never containing credentials. Export the real declared scheme and explicitly report unknown authentication transport when no metadata is available; do not invent a cookie scheme. Preserve authorization enforcement and core/extension separation. No universal authentication API or new provider-specific branches in core.
Acceptance: a cookie provider with a custom cookie name, a bearer provider and a provider with unknown credential semantics produce truthful documents; passive export does not execute untrusted providers. Validate with an independent OpenAPI consumer and exercise configured authentication through one generated-client/contract test where supported. Coordinate with #1041; this is a follow-up to the closed schema/OpenAPI work #845.
Activity
Merge origin/main into claude/openapi-security-1047
feat(openapi): describe principal providers' credentials truthfully (#…