0
votes
1answer
97 views

ImportError: No module named flask.ext.httpauth

I am trying to inistiate a Python server which uses the Flask framework. I'm having a hard time setting up the flask extention HTTPBasicAuth. I'm not sure how I can get this extension setup properly. ...
0
votes
2answers
440 views

Flask HTTP Basicauth - How does it work?

I'm trying to create a login system using Flask and HTTP Basic Auth. My question is, is it my responsibility to provide user information from databases, or does basicauth create and access those ...
2
votes
1answer
109 views

Accessing a web page with basic auth on python

I'm trying to connect a web page with mechanize but I'm getting a http 401 error. Here's my code; import base64, mechanize url = "http://www.dogus.edu.tr/dusor/FrmMain.aspx" user = "user" pwd = ...
6
votes
2answers
9k views

HTTP Basic Authentication Doesn't Seem to Work with urllib2 in python

I'm trying to download a page protected with basic authentication using urllib2. I'm using python 2.7 but I also tried it on another computer with python 2.5 and encountered the exact same behavior. I ...
0
votes
2answers
191 views

How to enable basic access authentication in django

I want to enable basic access authentication in my Django project like this: I found this post by Google, and changed my settings.py following the first answer: MIDDLEWARE_CLASSES = ( ... ...
5
votes
2answers
443 views

How to send username:password to unittest's app.get() request?

This is part of my unit test in Flask-RESTful. self.app = application.app.test_client() rv = self.app.get('api/v1.0/{0}'.format(ios_sync_timestamp)) eq_(rv.status_code,200) Within the command line ...
0
votes
1answer
88 views

How to do a basic authentication in a functional view in Django?

I want to do a basic authentication on a functional view. The view is expecting a POST request from a client script. So as soon as the client is authenticated, it will POST some new data to the view. ...
2
votes
1answer
434 views

CherryPy wsgi basic http authentication

Is it possible to use the methods of cherrypy.lib.auth_basic for a CherryPyWSGIServer object? Even if I call the cherrypy.config.update function for including the list of permitted users, clients can ...
0
votes
1answer
172 views

how to add authentication to a wsgiref python web service

I am working on a sample code given in the python documentation, the code is: from wsgiref.simple_server import make_server, demo_app httpd = make_server('', 8000, demo_app) print "Serving HTTP on ...
0
votes
1answer
3k views

How to pass over the HttpAuthentication into selenium webdriver

In my python project, the login process is handled by the HttpBasicAuth handler. After getting the response I should load the main page via selenium. How it is supposed to be done? It has the ...
1
vote
1answer
445 views

404 on HTTP-Basic authentication?

I have the following scenario: I have a ShoutCast-ish server which serves out radio station XML info. I have a Flash Player client which needs to fetch it. Flash Player can't fetch things over ...