Libraries
    Preparing search index...

    Function oidcScheme

    • 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.

      Type Parameters

      • T

      Parameters

      Returns AuthenticationScheme<T>

      const oidc = oidcScheme({
      openIdConnectUrl: 'https://auth.example.com/.well-known/openid-configuration',
      authenticate: async (ctx) => {
      // validate token from ctx.headers.authorization
      return { succeeded: false };
      }
      });