fastapi-auth-middleware icon indicating copy to clipboard operation
fastapi-auth-middleware copied to clipboard

how can I exclude the swagger /docs path from middleware auth ?

Open vikyw89 opened this issue 1 year ago • 2 comments

vikyw89 avatar Nov 07 '23 17:11 vikyw89

Hi @vikyw89, We unfortunately didn't document this, thanks for pointing that out. The middleware takes a keyword argument called excluded_urls that expects a list of strings (relative paths)

yannicschroeer avatar Nov 12 '23 16:11 yannicschroeer

Thank you for the information

vikyw89 avatar Nov 25 '23 12:11 vikyw89