HTTP Auth

chris's Avatar

chris

28 Jan, 2009 02:19 AM

Hi, I've been unable to find this on my own. In the code I'm writing I want to be able to authenticate both with a token and the normal HTTP.

My problem is, all examples I can find do something like jam the username and password into the headers on the initial request (curl and wget do this).

Based on HTTP specs, the client only sends the WWW-Authenticate header to the server after the server has returned a 401: Unauthorized. This returns its own WWW-Authenticate header containing the realm.

What I need is to know that realm. I'm writing an OO perl module to interact with the API and utilizing perl's libwwwperl (LWP) architecture. It only sends auth credentials when asked for them, and in order to make it do so, I have to give it the auth realm to watch for.

Assuming you're doing true HTTP Auth, what is that realm?

  1. 1 Posted by Rick on 28 Jan, 2009 04:59 AM

    Rick's Avatar

    I believe the realm is "Web Password".

  2. Rick closed this discussion on 28 Jan, 2009 04:59 AM.

Discussions are closed to public comments.
If you need help with Lighthouse please start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac