bug-hunters / oas3-tools

A Node.js and browser module that provides tooling around Swagger.
MIT License
27 stars 50 forks source link

Security function to validate JWT not working #21

Open ITRpablinho opened 4 years ago

ITRpablinho commented 4 years ago

hi i'm unable to make working the security of a JWT, i follow the syntax that i found for oas-tools but it's not working:

var options = {
controllers: path.join(__dirname, './controllers'),
oasSecurity: true,
    securityFile: {
        Bearer: verifyToken
    },

or

securityFile: { Bearer: { issuer: 'ISA Auth', algorithms: ['HS256'], key: 'Secret' }

How can i overcome this issue? Thanks

mstrewe commented 4 years ago

@ITRpablinho this should be solved by PR 24