Ian McIntyre Silber
Ian McIntyre Silber

Reputation: 5663

CodeIgniter 2 HTTP Auth

I'm trying to set up a very basic HTTP auth for an admin directory on my site built with CodeIgniter 2.

I've tried the suggestions here http://codeigniter.com/forums/viewthread/141775/ but it still doesn't seem to work.

Help?

Upvotes: 0

Views: 1662

Answers (1)

Phil Sturgeon
Phil Sturgeon

Reputation: 30766

Have a look at my REST Server library:

https://github.com/philsturgeon/codeigniter-restserver/blob/master/application/libraries/REST_Controller.php#L697

I've written code to protect my API's with basic and digest. You could easily reuse this stuff for your admin panel.

Upvotes: 2

Related Questions