Guest User

Untitled

a guest
Nov 17th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. securityDefinitions:
  2. appKeyA:
  3. type: apiKey
  4. name: Authorization
  5. in: header
  6. appKeyB:
  7. type: apiKey
  8. in: header
  9. name: X-APP-ID
  10.  
  11. /foo
  12. security:
  13. - appKeyA: []
  14. appKeyB: []
  15.  
  16. app.use(
  17. middleware.swaggerSecurity({
  18. //manage token function in the 'auth' module
  19. appKeyA: auth.verifyToken
  20.  
  21. })
  22. );
  23.  
  24. exports.verifyToken = function(req, authOrSecDef, token, callback) {
  25. ...
  26. }
Add Comment
Please, Sign In to add comment