title: Can't generate my swagger documentation through open id connect
body: <p>I try to link my <code>swagger</code> documentation to openid connect (<code>keycloak</code>) for my an <code>express</code> project. To do so, I derived the following ts file:</p>
  <pre><code>import swaggerJSDoc from 'swagger-jsdoc';
  
  const options = {
    swaggerDefinition: {
        openapi: '3.0.0',
        info: {
            title: 'REST API for apachegen',
            version: '1.0.0',
        },
        components: {
            securitySchemes: {
                openId: {
                  type: &quot;openIdConnect&quot;,
                  openIdConnectUrl: https://mysso.com/auth/realms/ILL/.well-known/openid-configuration
                }
            }
        },
    },
    apis: [      
        './dist/controllers/account-controller.js',
    ]
  };
  
  export const swaggerSpec = swaggerJSDoc(options);
  </code></pre>
  <p>and here is a route that I try to document:</p>
  <pre><code>/**
   * @swagger
   * /api/accounts:
   *   get:
   *     summary: Return the accounts stored in the database
   *     description: Return the accounts stored in the database.
   *     security:
   *       - openId: []
   *     responses:
   *       200:
   *         description: the accounts list.
   *         content:
   *           application/json:
   *             schema:
   *               type: array
   *               items:
   *                 $ref: '#/definitions/AccountSummary'
   *       500:
   *         description: internal server error.
  */
   router.get('/accounts', async (req: Request, res: Response) =&gt; {
      try {
          const response: AccountSummary[] = await this._accountService.read();
          res.status(200).send(response);
      } catch (err) {
          res.status(500).send(&quot;Internal Server Error&quot;);                
      }
  });
  </code></pre>
  <p>When I open my documentation homepage and click on the <strong>Authorize</strong> button, I get the following result:</p>
  <p><a href="https://i.stack.imgur.com/oSNwy.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oSNwy.png" alt="enter image description here" /></a></p>
  <p>Would you have any idea about what I am doing wrong ?</p>