MCPcopy
hub / github.com/AndrewWalsh/openapi-devtools / Authentication

Interface Authentication

src/utils/types.ts:26–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24
25// Modelled on a Security Scheme Object https://spec.openapis.org/oas/v3.1.0#security-scheme-object
26export interface Authentication {
27 // So there is a straightforward way of identifying the type
28 authType: AuthTypeString;
29 // One of: 'apiKey' | 'http' | 'oauth2' | 'openIdConnect'
30 type: SecuritySchemeType;
31 // Could potentially generate some form of description from token values
32 description?: string;
33 // The name of the header, query or cookie parameter to be used. Used only with apiKey
34 name?: string;
35 // The location of the API key, "query", "header" or "cookie"
36 in: "query" | "header" | "cookie";
37 // A valid HTTP auth scheme defined in RFC9110. Only used when type = http
38 scheme?: "Basic" | "Bearer" | "Digest";
39}
40
41// A Leaf stores data about an endpoint
42export type Leaf = {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected