Create an OpenID Connect authentication scheme.
The returned scheme exposes an openIdConnectUrl property that the OpenAPI generator uses to automatically emit the correct openIdConnect security scheme.
openIdConnectUrl
openIdConnect
const oidc = oidcScheme({ openIdConnectUrl: 'https://auth.example.com/.well-known/openid-configuration', authenticate: async (ctx) => { // validate token from ctx.headers.authorization return { succeeded: false }; }}); Copy
const oidc = oidcScheme({ openIdConnectUrl: 'https://auth.example.com/.well-known/openid-configuration', authenticate: async (ctx) => { // validate token from ctx.headers.authorization return { succeeded: false }; }});
Create an OpenID Connect authentication scheme.
The returned scheme exposes an
openIdConnectUrlproperty that the OpenAPI generator uses to automatically emit the correctopenIdConnectsecurity scheme.