2
votes
1answer
2k views

AngularJS basic auth

Why do i get a 401 with this? The credentials are correct. app.config(['$httpProvider', function($httpProvider) { $httpProvider.defaults.headers.post["Content-Type"] = ...
0
votes
1answer
23 views

Basic Auth in Clojure with clj-http

We're using clj-http to do HTTP basic authentication. I want to send a request with this header: Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ= All the examples I've found say to do it like this: ...
0
votes
1answer
40 views

Authenticate via Ruby into Jira

Authenticate via Ruby into Jira and post changes via ZAPI (Zephyr API) What I'm trying to do: I'm trying to authenticate via Ruby into Jira and then make changes to Zephyr (Jira plugin w/Z(ephyr)API) ...
1
vote
1answer
1k views

HTTP Error 401.2 - Unauthorized You are not authorized to view this page due to invalid authentication headers

i want to allow access to Anonymous.aspx page to all user, i have set Basic Authentication to Enabled, and Connect as to specific user. my problem is when trying to access ...
0
votes
0answers
10 views

Comment lines in Apache's password file?

I manage a web server that hosts multiple websites, ticketing systems and code repositories. Usually I have one Apache user file per location and asign them to each location using Apache's ...
0
votes
1answer
37 views

What is the difference between basic authentication and cryptographic authentication?

What are the main differences between these two authentication methods? And when would you use one over the other?
0
votes
1answer
31 views

Is there any WWW-Authenticate header that will prompt user for only password?

I'm developing a scheme where a password alone (not username) grants access to documents. WWW-Authenticate: Basic will prompt user for both username and password. Is there any way to direct standard ...
1
vote
2answers
54 views

username in `user:[email protected]` not in $_SERVER

To start things off, my server is not running PHP in CGI mode. And even if it was I have the proper mod_rewrite stuff setup (this is a Drupal site). My problem is that when the user/pass are passed ...
1
vote
0answers
293 views

CakePHP 2.4 Basic HTTP Authentication popup loop

I am currently trying to setup a RESTful webservice /w a Basic HTTP Authentication, and a Form authentication for web users. (Basic is for Mobile clients). Cake is using Joomla password hashing ...
2
votes
1answer
105 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 = ...
0
votes
0answers
127 views

Loopj Basic HTTP Authentication

I'm using loopj 1.4.4 library to make a POST HTTP request with basic HTTP authentication. Android side: public static void post(String url, RequestParams params, String username, String ...
0
votes
1answer
107 views

Twitter API Auth

I would like to get\post some twitter data without creating application(only by user_name\mail and password of twitter account). How can i do this? is it possible? I know this was possible around 2 ...
29
votes
7answers
27k views

Preemptive Basic authentication with Apache HttpClient 4

Is there an easier way to setup the http client for preemptive basic authentication than what described here? In previous version (3.x) it used to be a simple method call (eg, ...
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
0answers
43 views

Nginx does not turn auth on directores

I am making my very first steps in Nginx. I would like all PHP scripts under /auth/ to be authenticated. Instead, the files under /auth/ are processed by PHP but not authenticated. Everything is fine ...
3
votes
1answer
1k views

How can I add basic auth to an nginx configuration with rewrite

I have the following nginx configuration I would like to add basic authentication to this configuration to this. upstream phpfcgi { server 127.0.0.1:7777; # server ...
1
vote
1answer
115 views

How to enable basic authentication before the processing the request in asp.mvc? (Description inside) [duplicate]

I need to authenticate the incoming request before it start processing. When my client application requests to the server, I need to authenticate the request using basic authentication and need to ...
0
votes
1answer
54 views

How to make spring security dynamic

I have a web app which uses spring security basic authentication . So now if i hit the url.. server sends a 401 and my browser show the username/password popup. Every thing is fine. But now i ...
3
votes
1answer
944 views

How do you set the Access-Control-Allow-Origin header for the HTTP basic authentication response in Apache?

I want to use XHR to log in to a site that uses HTTP basic authentication. The following piece does this. http = new XMLHttpRequest(); http.open("get", "http://...", false, username, password); ...
2
votes
1answer
566 views

CakePHP form authentication for normal requests with basic authentication for JSON

I'm attempting to to build a web application that can be view by a user in a browser but also has an API for developers to interface with my application. My question is how do I change the ...
1
vote
1answer
1k views

how to form this REST request as a header, basic auth

This is how I would do this http request with curl curl -v --basic --user USERNAME:PASSWORD how would I set this as a header in a different REST client? I can create curl commands in php, but in ...
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. ...
0
votes
1answer
97 views

Passing basic auth username to a shell script

I have a weird requirement. I have a webserver setup with http basic auth. Is there a way to pass the username and/or the password a user enters to a shell script with in the environment? I know ...
-1
votes
1answer
391 views

Responding to Basic Authentication/Authorization with 401. Same username/password gets sent 2nd time

I am writing a java program which responds to a basic request - using this as a reference - http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html First time the browser sends a GET request without ...
0
votes
2answers
365 views

Should I encrypt passwords before sending via Basic Auth?

Very simple question. For registering and logging in through a RESTful API, should the passwords be encrypted before sending through Basic Authentication; or is Basic Authentication so secure that ...
0
votes
1answer
360 views

HTTP Basic Auth - Server Says? [duplicate]

Possible Duplicate: Sending basic authentication information via form When connecting to a web folder with basic auth the server can "say" something to you. For example when you you try ...
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
295 views

Bestpractice ASP <-> WebApi which Auth / security model

I'm searching for bestpractices for auth in the given Internet Application scenario. I've an ASP MVC 4 Webpage and an ASP4 WebApi. Both are hosted on the same server but as independent applications. ...
1
vote
0answers
596 views

Auto-login to basic-auth-protected URLs from a Safari 5.1.x extension - possible?

I'm in charge of developing extensions (with the same set of functionality) for three browsers: Firefox, Chrome and Safari. One of the features is basic-auth auto-login. The credentials are fetched ...
1
vote
1answer
392 views

Is there a way to get a password from HTTP authorization header in Apache2 config?

I've found that I can access HTTP Authorization header by the following code RewriteEngine on RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L] Unfortunately I don't understand how to ...
0
votes
1answer
1k views

How to access secure soap web service basic authentication in Windows Phone 7

I created a web service "http://service.mydomain.com/MobileService.asmx" I created a Windows mobile application I added a reference to this web service I started coding and finished the WP7 ...
2
votes
1answer
685 views

Is it possible to have two password files in Apache2?

Can I have two AuthUserFile directives in an apache2/sites-enabled/000-default configuration file? <Location /repo/trac> AuthType Basic AuthName "Trac" AuthUserFile ...
2
votes
1answer
1k views

OAuth and Basic Auth together

I have a web application that is using OAuth, and want to add Basic authentication as well to just view the page. I've modified my .htaccess file, added an .htpasswd file, and got the basic auth ...
0
votes
2answers
430 views

Go, basic access authentication

Does Google Go support decoding of basic access authentication calls? How do I get the username and password from the http.Request?
1
vote
1answer
443 views

URL based HTTP Basic Authentication

A number of applications support the following method for passing authentication credentials to a server: https://username:[email protected] Among these applications are both wget and Firefox ...
7
votes
1answer
1k views

Why should I use HTTP basic authentication instead of username and password post parameters?

I have an API endpoint https://www.example.com/api/authentication which takes username and password as input and returns an authentication token. In terms of passing username and password, I have ...
0
votes
1answer
2k views

how do you Change IIS authentication method to BasicAuthentication?

I try to Change IIS authentication method to BasicAuthentication for IIS7? I try to follow the steps here, because I get that error Thank you PS: I was trying this, but I have only this options
0
votes
0answers
965 views

Basic HttpUrlConnection Failure

I am trying to connect to a page using HttpUrlConnection but I am getting Unauthorized results even after using Basic authentication: String encoded = Base64.encode(username+":"+password); ...
0
votes
1answer
1k views

WCF + Basic Auth - Won't stop using Anonymous Auth

I’ve been trying to create a WCF service that uses Basic Authentication and so far I keep hitting an error message indicating that the service wants Anonymous authentication even though I thought I'd ...
5
votes
4answers
3k views

HTTPS and BASIC authentication

When I use HTTP BASIC authentication along with HTTPS, are the username and password securely passed to the server? I would be happy if you can help me with some references. I mean, it would be ...
1
vote
0answers
297 views

Is anything wrong with my manual implementation of Basic HTTP Authentication?

I am using WCF to develop a RESTful Web Service that acts as a proxy to a set of stored procedures that, for security reasons, cannot be directly accessed by Internet-facing applications. The class ...
1
vote
2answers
965 views

HTTP Basic Authentication passed to different subdomain

I'm trying to pass a basic HTTP authentication from one subdomain to another as to not ask people to login twice. The first subdomain is PHP capable, while the second is an ASP application. The ASP ...
1
vote
0answers
262 views

Javascript hitting rails3 route claims it needs authentication, even though I'm already logged in

I have a rails 3 app, where one of the pages has some javascript stuff (an OpenLayers map) that hits a route that requires authentication. When I hit the route, I get an http basic auth pop up that ...
5
votes
2answers
5k views

Get the HTTP Basic Auth username from javascript?

I have a webpage that is only accessible over http basic auth. How can I figure out the basic auth username in javascript in that page. i.e. when someone visits it (after logging in), I want to make a ...