httpbin icon indicating copy to clipboard operation
httpbin copied to clipboard

Dedicated httpbin under basic auth

Open safigo opened this issue 8 years ago • 3 comments

Hi,

I want to have my own HttpBin instance (because don't want to DDOS public version) for many requests. But I want to close access to my instance over basic auth, but new Swagger UI doesn't work.

Steps to reproduce:

  • Make basic auth on your nginx
  • Go to httpbin site
  • Look at the infinity loading
  • Go to Developer Tools -> Network
  • Look at Status Code: 401 on the /spec.json request

I can't find authorization: Basic *** in the request headers

Expected Result: HttpBin works, or can I protect instance in the httpbin from Docker?

safigo avatar Jun 18 '18 11:06 safigo

I'm sorry, but could someone help me, please?

safigo avatar Jun 21 '18 08:06 safigo

Maybe incorporating aspects of https://github.com/rochacbruno/flasgger/blob/master/examples/basic_auth.py will help.

javabrett avatar Jun 21 '18 10:06 javabrett

@javabrett, thanks a lot, but I’ve used the version 0.7.0 with previous design. I’ll try to do it later

safigo avatar Jun 22 '18 13:06 safigo