koa-swagger-decorator icon indicating copy to clipboard operation
koa-swagger-decorator copied to clipboard

how to add baseic auth api_auth and user auth in swagger doc

Open nirajbisht opened this issue 5 years ago • 2 comments

hello sir basically, I want to add three middleware in my code 1> basic auth with userName and password 2> api auth with api_key 3> user auth with authorization

i have implemented user auth, API auth but Api auth is not working only user auth is able to use it In the ctx.request.headers i am getting only single key Authorization with token but i want a api-key so that i can implement api auth and user auth middlewear on my code Please help me as soon as possible thanx in advance Screenshot from 2019-04-29 19-44-39 Screenshot from 2019-04-29 19-48-46

nirajbisht avatar Apr 29 '19 14:04 nirajbisht

Im sorry, this authorizations feature is not supported yet. We will implement this featrue in the next major version.

Cody2333 avatar Apr 30 '19 13:04 Cody2333

hello sir r u talking about API auth or basic auth
or for the both the authorizations because i am able to implement only user authorizations with token

nirajbisht avatar May 01 '19 09:05 nirajbisht