Questions tagged [http-authentication]

HTTP authentication is a method for a HTTP user agent to provide a user name and a certain proof confirming the user's identity when making a request. Various proofs define different HTTP Authentication methods, e.g. basic, forms, digest, or others.

622 questions
13
votes
4 answers

How do I keep Firefox from prompting for username/password with HTTP Basic Auth with JQuery AJAX?

I'm writing some browser side dynamic functionality and using HTTP Basic Auth to protect some resources. The user experience is very important and is highly customized. Here's a simple test JQuery method that eventually will test if a user has…
Ian Terrell
  • 10,667
  • 11
  • 45
  • 66
13
votes
2 answers

HTTP Authentication - WWW-Authenticate header - multiple realms

Does anyone have any experience of supporting multiple realms in HTTP Authentication? The Microsoft website states: Each authenticate response header contains an available authentication scheme and a realm. If multiple authentication…
user63899
13
votes
1 answer

How to use Basic HTTP Auth with REST webservice (Java+Jersey)?

I am a newbie to REST webservice and have just created my first webservice. In my service the user can create profile via simple form giving his desired Username and password. Now how to check user credentials when the user logs-in ?? I mean i…
user2416728
  • 400
  • 4
  • 8
  • 25
12
votes
1 answer

Setting up mod_proxy to pass http authentication to server

I have a problem configuring Apache as a proxy server. At the moment I access a MS Sharepoint installation using domain.net over Port 80. Before being able to use it I have to enter username and password. So far so good. Now I want to be able to…
signpainter
  • 720
  • 1
  • 7
  • 22
12
votes
2 answers

Stuck with Python HTTP Server with Basic Authentication using BaseHTTP

I am stuck trying to get a python based webserver to work. I want to do Basic Authentication (sending a 401 header) and authenticating against a list of users. I have no trouble sending the 401 response with "WWW-Authorize" header, I can validate…
Alexander
  • 121
  • 1
  • 1
  • 3
12
votes
2 answers

How to retrieve attempted $_SERVER['REMOTE_USER'] from URL when no authentication is required

Normally when a publicly-accessible directory requires basic HTTP authentication, the value of $_SERVER['HTTP_AUTHORIZATION'] and/or $_SERVER['REMOTE_USER'] (or $_SERVER['PHP_AUTH_USER'], etc) will be set and accessible to PHP once a valid…
jerdiggity
  • 3,655
  • 1
  • 29
  • 41
11
votes
5 answers

What's the best way to use HTTP Authentication in an Ajax Application that's not 100% AJAX

I have a standard HTML login page, which I would much rather use than the standard HTTP authentication pop-up provided by browsers. Today, I am using session cookies to keep track of the session after logging in, but I'd like to be stateless and…
jhericks
  • 5,833
  • 6
  • 40
  • 60
11
votes
2 answers

How do I provide basic http authentication for static tomcat webapps without changing tomcat-users.xml?

I have access to the tomcat manager and can upload war-files. One of these wars is a static web project (zipped html + media files, renamed to *.war). I want add a Web-INF/web.xml file to this war to protect the content with basic http auth. I know…
Juve
  • 10,584
  • 14
  • 63
  • 90
11
votes
3 answers

NodeJS HTTP Server - How To Verify Client's IP and Login?

If I decide to use http module for my server, which module/method(s) I need to do the following? To Verify the source IP address of connecting client? If the server requires the URL like http://username:password@exmaple.com/method1, how do i setup…
d4v1dv00
  • 971
  • 4
  • 10
  • 21
11
votes
1 answer

Send user credentials in aiohttp request

I can't find a way to send user credentials with aiohttp. I want similar behavior to cURL's curl --user "USER:PASSWORD" but in aiohttp. On the reference doc I can't find this option, I can find query parameters, headers, body, but not user…
Reda Drissi
  • 1,532
  • 3
  • 20
  • 32
11
votes
3 answers

Avoid HTTP auth popup in a chrome extension (digest)

I'm currently developing a chrome extension, I need to access some http-auth protected resources (webdav). The HTTP auth is using (in the best case) a digest authentication. I'm able to do the auth directly in the ajax request using the…
11
votes
3 answers

determining web http authentication methods

How do you determine if a REST webservice is using Basic, Kerberos, NTLM, or one of the many other authentication methods?
Seph
  • 8,472
  • 10
  • 63
  • 94
11
votes
1 answer

Accessing a web service and a HTTP interface using certificate authentication

It is the first time I have to use certificate authentication. A commercial partner expose two services, a XML Web Service and a HTTP service. I have to access both of them with .NET clients. What I have tried 0. Setting up the environment I have…
10
votes
3 answers

RestTemplate basic or digest Authentication with the current httpclient (4.x)

I'm trying to do Digest mostly (or Basic) Authentication using RestTemplate and httpclient (4.x). Since I couldn't find any relevant examples of how to actually do this, I have attempted various ways to hook the various httpclient artifacts, with…
10
votes
9 answers

Flex 3 - how to support HTTP Authentication URLRequest?

I have a Flex file upload script that uses URLRequest to upload files to a server. I want to add support for http authentication (password protected directories on the server), but I don't know how to implement this - I assume I need to extend the…
BrynJ
  • 8,322
  • 14
  • 65
  • 89
1 2
3
41 42