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.

Add Basic Auth support

See original GitHub issue

It would be better to add basic auth support in the project. I checked the code and noticed that we are using SimpleHTTPServer. Can we use Flask?

In config file, we could define as follows:

startWebServer = true
basicAuth = **true**
basicAuthUsername = **username**
basicAuthPassword = **base64 password** or **plain password**

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:2
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
laxdogcommented, Jun 9, 2017

It can be done in pure python without extra libraries. BaseHTTPServer is part of the standard library.

Loading it will take an extra 2028 bytes (I just checked), so it’s really not an issue.

Agreed, you could run behind apache / nginx, but not everyone can do that for themselves.

0reactions
rnevetcommented, Jun 12, 2017

How about refactoring the entire WebServer feature into a Plugin? 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Basic Authentication - Swagger
Basic authentication is a simple authentication scheme built into the HTTP protocol. The client sends HTTP requests with the Authorization header that ...
Read more >
Deprecation of Basic authentication in Exchange Online
This decision requires customers to move from apps that use basic authentication to apps that use Modern authentication. Modern authentication ( ...
Read more >
HTTP authentication - MDN Web Docs - Mozilla
The "Basic" authentication scheme offers very poor security, but is widely supported and easy to set up. It is introduced in more detail ......
Read more >
Restricting Access with HTTP Basic Authentication | NGINX Plus
You can restrict access to your website or some parts of it by implementing a username/password authentication. Usernames and passwords are taken from...
Read more >
Adding basic HTTP auth to a WCF REST service
I would like to add WWW-Authenticate basic authentication support to my WCF service. My methods look like this: [WebInvoke(UriTemplate = "widgets", Method ...
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