Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Security function to validate JWT not working #21

Open
ITRpablinho opened this issue Apr 27, 2020 · 1 comment
Open

Security function to validate JWT not working #21

ITRpablinho opened this issue Apr 27, 2020 · 1 comment

Comments

@ITRpablinho
Copy link

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
Copy link

mstrewe commented Sep 21, 2020

@ITRpablinho this should be solved by PR 24

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants