@scalar/api-client
Version:
the open source API testing client
98 lines (97 loc) • 1.73 kB
JavaScript
const e = {
apiKeyCookie: {
label: "API Key in Cookies",
payload: {
type: "apiKey",
in: "cookie",
name: "apiKeyCookie"
}
},
apiKeyHeader: {
label: "API Key in Headers",
payload: {
type: "apiKey",
in: "header",
name: "apiKeyHeader"
}
},
apiKeyQuery: {
label: "API Key in Query Params",
payload: {
type: "apiKey",
in: "query",
name: "apiKeyQuery"
}
},
httpBasic: {
label: "HTTP Basic",
payload: {
type: "http",
scheme: "basic"
}
},
httpBearer: {
label: "HTTP Bearer",
payload: {
type: "http",
scheme: "bearer"
}
},
oauth2Implicit: {
label: "Oauth2 Implicit Flow",
payload: {
type: "oauth2",
flows: {
implicit: {
authorizationUrl: "",
refreshUrl: "",
scopes: {}
}
}
}
},
oauth2Password: {
label: "Oauth2 Password Flow",
payload: {
type: "oauth2",
flows: {
password: {
tokenUrl: "",
refreshUrl: "",
scopes: {}
}
}
}
},
oauth2ClientCredentials: {
label: "Oauth2 Client Credentials",
payload: {
type: "oauth2",
flows: {
clientCredentials: {
tokenUrl: "",
refreshUrl: "",
scopes: {}
}
}
}
},
oauth2AuthorizationFlow: {
label: "Oauth2 Authorization Code",
payload: {
type: "oauth2",
flows: {
authorizationCode: {
authorizationUrl: "",
tokenUrl: "",
refreshUrl: "",
"x-usePkce": "no",
scopes: {}
}
}
}
}
};
export {
e as authOptions
};