question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to secure docs route?

See original GitHub issue

I want to restrict access to /docs route from not logged in users. Maybe someone has an example for this? 😃

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mxarccommented, Nov 9, 2020

@mxarc, additional question, is it possible somehow to include my request interceptor in your module? to transfer authorization control entirely to myself.

@ekifox It might be possible, version 2.0 uses express-basic-auth package and it allows to handle custom auth (see https://www.npmjs.com/package/express-basic-auth). I would need to include an optional property which passes your method to express-basic-auth.

0reactions
herenicknamecommented, Dec 11, 2020

@mxarc /docs/swagger.json is not secured via basic auth. Only main redoc’s /docs is secured 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Send Secure Documents: The Complete Guide
How to Send Secure Documents · 1. Encrypting Email Content · 2. Encrypting Attachments Through Email · 3. Password-Protect the Document File ·...
Read more >
The Safest Ways to Send Your Documents Securely - Telnyx
Check the email address and the sender name before you email sensitive documents. · Type web addresses into your browser. · Make sure...
Read more >
Secure Virtual Data Room & File Storage Software - SecureDocs
SecureDocs data rooms use 256-bit encryption for all data, both in transit and at rest. And all connections are protected using TLS 1.2...
Read more >
5. Protecting Confidential Documents at Your Site - W3C
One way to increase the security of restriction by domain name is to make sure that your server double-checks the results of its...
Read more >
BOX | Secure File Sharing & How to protect your Documents
HOW TO SHARE FILES SECURELY? · Mark uploads a document to Box directly from the browser or through Box Drive to a folder...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found