All in the <head>

– Ponderings & code by Drew McLellan –

– Live from The Internets since 2003 –

About

Authentication Required

8 July 2004

With the ever increasing marketing demands to gather as much information as possible about site readership, more and more sites are locking the doors and requiring registration before letting anyone in to view their best content. Whilst this is good for the marketeers (and good for the site if that information can be turned around into revenue), it can be inconvenient for users. The fundamental and normally simple act of creating a hyperlink to a page can become a whole lot more complex.

The New York Times site is a classic example. Frequently I’ve followed links on weblogs and such to apparently interesting articles on NYTimes.com. Not once have I succeeded in reading one, due to their insistence on registration. As I have no motivation to register (I can search for the story elsewhere), I’ve never registered – there’s no benefit.

That particular rant aside, this raises an interesting question. What sites like NYTimes.com are doing by redirecting the user to a login/register page on following a link, is to effectively say that the page they have requested requires authentication. Oh, hold on – don’t we have standards for this?

Leaving aside for the moment the fact that HTTP has it’s own authentication methods and the fact that handling of those methods in user agents leaves a little to be desired, shouldn’t the above described situation generate an HTTP 401? Looking at it from the point of view that many sites will implement this I’ll-show-you-mine-if-you-whore-your-data approach by utilising an HTTP 301 (moved permanently) to redirect to a login/register page, a 401 would seem more appropriate.

The question remains:- should HTTP authentication be preferred for out-and-out authentication is required scenarios due to its mere existence, coupled with being an established standard?

If every page that required authentication issued a valid 401, then a consumer could perform a look-ahead before structuring a link. More realistically, if a site like the NYTimes.com requires authentication to access a URI in a link on a given page, the user’s browser could more seamlessly handle the authentication on the user’s behalf. Abstract that idea out to web applications – and in particular non-public web applications, or online software products. Stuff that’s more important to your day than eBay. If the browser was able to handle authentication in a more sophisticated way than recalling form input, that’s another big interface hurdle flattened for the user. You should see my users – I need all the obstacles flattened that I can get.

But then, we’d need more intelligent browsers first. So yeah, one day perhaps.

- Drew McLellan

Comments

  1. § Hans: In the mean time, we can always make use of BugMeNot ...

    I believe NY Times still wants potential readres to be interested in reading something else on the website; but they’re not succeeding as the REGISTER NOW! page is quite shocking.
  2. § Chris L: I think NYT has gone further than most in allowing bloggers and others to use registration free links… the NYT Link Generator is certainly a step in the right direction…
  3. § Gabe: What you’re suggesting is pretty much a pipe dream. Kind of like perfect semantic HTML. Following standards to the letter works fine when you’re just collaborating with geeks behind the scenes, but the web is controlled by marketeers for whom the word elegance has no actual meaning other than looking nice in a powerpoint. Image is everything, implementation is nothing.

    Not that I’m actually against marketing, the point is just that people in control of these sites don’t want you to know you have to register until you get there. Still, it’s a nice thought.
  4. § David: You know, if you want to read a NY Times article, just enter the URL in Google and click through from the results page. Apparently they check the referer and allow users coming from Google to see articles without registration.

    And there’s always BugMeNot.
  5. § Kevin Francis: I use BugMeNot :)
  6. § ddalibor: BugMeNot is an awesome idea. I use it all the time. :)
  7. § mort: Although leaving authentication to be handled by HTTP sounds elegant (in a spartan/minimalist kind of way), it fails on a) user friendliness and b) lack of supplementary features to the login process such as ‘did you forget your password?’ or ‘stay logged on this computer’

    And for the response header, i’m not really sure you should issue a HTTP error before even asking for authentication. It’s quite different saying ‘You can’t go in there’ than ‘May i check your ID before you go in there, sir?’
  8. § Jan!: I’d think a 403 is more useful here: you can have your fancy-pants page with all the options like forget-me-not, without seeing the annoying HTTP Auth dialog first.

Photographs

Work With Me

edgeofmyseat.com logo

At edgeofmyseat.com we build custom content management systems, ecommerce solutions and develop web apps.

Recent Links

Affiliation

  • Web Standards Project
  • Britpack
  • 24 ways

About Drew McLellan

Photo of Drew McLellan

Drew McLellan has been hacking on the web since around 1996 following an unfortunate incident with a margarine tub. Since then he’s spread himself between both front- and back-end development projects, and now is Director and Senior Web Developer at edgeofmyseat.com in Maidenhead, UK (GEO: 51.5217, -0.7177). Prior to this, Drew was a Web Developer for Yahoo!, and before that primarily worked as a technical lead within design and branding agencies for clients such as Nissan, Goodyear Dunlop, Siemens/Bosch, Cadburys, ICI Dulux and Virgin.net. Somewhere along the way, Drew managed to get himself embroiled with Dreamweaver and was made an early Macromedia Evangelist for that product. This lead to book deals, public appearances, fame, glory, and his eventual downfall.

Picking himself up again, Drew is now a strong advocate for best practises, and stood as Group Lead for The Web Standards Project 2006-08. He has had articles published by A List Apart, Adobe, and O’Reilly Media’s XML.com, mostly due to mistaken identity. Drew is a proponent of the lower-case semantic web, and is currently expending energies in the direction of the microformats movement, with particular interests in making parsers an off-the-shelf commodity and developing simple UI conventions. He writes here at all in the head and, with a little help from his friends, at 24 ways.