flask-restx icon indicating copy to clipboard operation
flask-restx copied to clipboard

Adds config.SWAGGER_PREAUTHORIZEAPIKEY key

Open yweber opened this issue 5 years ago • 1 comments

Solution proposal for #196

This configuration key is designed to contain a function returning

  • False if no preauthorization needed/wanted
  • A tuple(authorization_name, key) if preauthorization wanted

The documentation is updated too.

yweber avatar Aug 13 '20 13:08 yweber

Codecov Report

Merging #197 into master will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #197   +/-   ##
=======================================
  Coverage   96.92%   96.92%           
=======================================
  Files          19       19           
  Lines        2697     2697           
=======================================
  Hits         2614     2614           
  Misses         83       83           

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 66d884f...7f46e4b. Read the comment docs.

codecov[bot] avatar Aug 14 '20 07:08 codecov[bot]