freestyle developments

site menu

  • Jump to page content
  • home
  • blog
  • about
  • projects
  • contact

Posts Tagged ‘authentication’

Implementation of HTTP Digest Authentication in PHP

Saturday, July 10th, 2010

So I could only find one other PHP based HTTP digest auth example on the internet…and it looked as though it might not even work. I wrote an abstract class as a base that allows you to easily build your own implementation.

You’d use it like so:


class MyAuth extends HTTPDigestAuth {
    // Implementation of abstract methods
}

$authenticator = new MyAuth();
$user = $authenticator->authenticate();

if(!$user) {
    die();
}

(more…)

Tags: authentication, digest auth, HTTP, PHP, security
Posted in PHP | No Comments »


archives

  • July 2010
  • May 2010
  • February 2010
  • January 2010
  • December 2009
  • December 2008
  • October 2008
  • August 2008
  • May 2008

categories

  • Blog (1)
  • Grinds My Gears (5)
  • Hosting (2)
  • JavaScript (1)
  • PHP (1)
  • Sports (1)
  • SQL (1)

meta

  • Entries RSS Entries
  • Entries RSS Comments
  • powered by WordPress

footer menu

  • valid xhtml & css
  • accessibility information
  • © 2010 freestyle developments
  • design by element-media