(slotKey: string)
| 689 | * `kind=connection` binding, not a secret; classified oauth-access for the rare |
| 690 | * cases it is secret-backed). */ |
| 691 | export const classifyBindingSlot = (slotKey: string): SecretRole => { |
| 692 | if (slotKey.includes("client-secret")) return "client-secret"; |
| 693 | if (slotKey.includes("client-id")) return "client-id"; |
| 694 | if ( |
| 695 | slotKey.startsWith("header:") || |
| 696 | slotKey.startsWith("query_param:") || |
| 697 | slotKey.startsWith("spec_fetch_header:") |
| 698 | ) { |
| 699 | return "apikey"; |
| 700 | } |
| 701 | if (slotKey.endsWith(":connection")) return "oauth-access"; |
| 702 | return "apikey"; |
| 703 | }; |
| 704 | |
| 705 | const isOAuthClientCredentialSlot = (slotKey: string): boolean => |
| 706 | slotKey.startsWith("oauth2:") && |
no outgoing calls
no test coverage detected