<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Sat, 25 May 2013 16:49:20 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Sebastian G&ouml;ttschkes: symfony2: Testing secure pages]]></title>
      <guid>http://www.phpdeveloper.org/news/18571</guid>
      <link>http://www.phpdeveloper.org/news/18571</link>
      <description><![CDATA[<p>
<i>Sebastian G&ouml;ttschkes</i> has a new post to his site showing you how to <a href="http://sgoettschkes.blogspot.com/2012/10/symfony2-testing-secure-pages.html">test secure pages</a> within your Symfony2 applications using a simple "requestWithAuth" method.
</p>
<blockquote>
If you develop a web application, more often than not you have some kind of user section or admin panel where some kind of login identifies the user and protects your actions against usage from unauthorized people. It can be difficult to do functional tests with this kind of pages as you need to simulate some session or cookie context. In this tutorial, I want to show you how to test your functional pages with symfony2 and phpunit.
</blockquote>
<p>
He includes a "bad way" to do it, cheating by making a client and feeding it the HTTP auth credentials, and a more correct way involving the "requestWithAuth" method that's called whenever the "request" is called to push those credentials along with every request. Code for this basic function is included.
</p>]]></description>
      <pubDate>Mon, 08 Oct 2012 13:13:19 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Chris Hartjes' Blog: Simple User Registration in CakePHP 1.2]]></title>
      <guid>http://www.phpdeveloper.org/news/9394</guid>
      <link>http://www.phpdeveloper.org/news/9394</link>
      <description><![CDATA[<p>
<i>Chris Hartjes</i> has <a href="http://www.littlehart.net/atthekeyboard/2008/01/08/simple-user-registration-in-cakephp/">posted a tutorial</a> about the creation of a simple user registration system in an application developed in the CakePHP framework. In response to the popularity of his other article on using CakePHP's Auth component, he's created a bit of code to answer some questions.
</p>
<blockquote>
People have been having some questions about how the password is hashed and questions about a user registration system. Of course, the snarky response is "go and read the source for Security::Hash() and create some of your own code", but it is easier to just give people some code so they stop asking.
</blockquote>
<p>
His <a href="http://www.littlehart.net/atthekeyboard/2008/01/08/simple-user-registration-in-cakephp/">example code</a> extends the User object for the model, makes a controller with a register() method call and creates the username/password form for the user the enter in their information.
</p>]]></description>
      <pubDate>Thu, 10 Jan 2008 12:09:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[SaniSoft Blog:  Bugs & enhancements for Auth component in CakePHP v1.2 - Part 1]]></title>
      <guid>http://www.phpdeveloper.org/news/8385</guid>
      <link>http://www.phpdeveloper.org/news/8385</link>
      <description><![CDATA[<p>
On the SaniSoft blog, there's <a href="http://www.sanisoft.com/blog/2007/08/03/bugs-enhancements-for-auth-component-in-cakephp-v12-part-1/">a post pointing out</a> a bugfix and a new enhancement to the Auth component for the CakePHP framework in version 1.2 (part 1):
</p>
<blockquote>
The auth component is supposed to handle the user login in your app but I was just not able to get that done and there have been similar complaints in the CakePHP mailing list. Since I wanted it *NOW* I had no option but to once again dig into the source - but - hey it is not so bad, they give you the code so that you can change it! right?
</blockquote>
<p>
His <a href="http://www.sanisoft.com/blog/2007/08/03/bugs-enhancements-for-auth-component-in-cakephp-v12-part-1/">patch</a> involves changing code in two places in the AuthComponent::startup() method to handle the login correctly.
</p>]]></description>
      <pubDate>Fri, 03 Aug 2007 10:27:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[WebReference.com: Security Techniques: Part 2]]></title>
      <guid>http://www.phpdeveloper.org/news/7931</guid>
      <link>http://www.phpdeveloper.org/news/7931</link>
      <description><![CDATA[<p>
WebReference.com has posted <a href="http://www.webreference.com/programming/php/php5-advanced2/index.html">part two</a> in their series looking at security techniques in PHP. This time they focus on the use of a few things - the PECL filter, the PEAR Auth module and mcrypt.
</p>
<p>
For each of the three topics covered, they include a few code examples on their use - an HTML form with the filter extension, user authentication with the PEAR Auth, and encrypting data to be used in a more secure cookie.
</p>
<p>
<a href="http://www.webreference.com/programming/php/php5-advanced2/index.html">The article</a> is excerpted from <a href="http://books.internet.com/books/0321376013">PHP 5 Advanced: Visual QuickPro Guide</a> by <a href="http://www.peachpit.com/bookstore/product.asp?isbn=0321376013&rl=1">Larry Ullman</a>.
</p>]]></description>
      <pubDate>Tue, 29 May 2007 12:02:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Norbet Mocsnik's Blog: Setting Up DokuWiki with Simple Authentication]]></title>
      <guid>http://www.phpdeveloper.org/news/6931</guid>
      <link>http://www.phpdeveloper.org/news/6931</link>
      <description><![CDATA[<p>
<i>Norbet Mocsnik</i>, having just set it up himself, is <a href="http://norbert.mocsnik.hu/blog/archives/208-Setting-Up-DokuWiki-with-Simple-Authentication.html">sharing the steps needed</a> to get DokuWiki set up and working with a simple authentication system.
</p>
<blockquote>
I promised to investigate the steps needed to set up DokuWiki with the simplest authentication scheme for a friend and I thought others might benefit from it too, so here it is.
</blockquote>
<p>
There's about fifteen steps in all, including the download/install of the package and creating the basic functionality (like a simple Auth schema - he gives an example). Create the superuser and set up the desired restrictions and you're home free. If you want more information on authentication in DokuWiki, check out <a href="http://wiki.splitbrain.org/wiki:acl">this page</a> on the DokuWiki's wiki. 
</p>]]></description>
      <pubDate>Tue, 19 Dec 2006 09:02:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[PHP Security Blog: A Trio of Javascript Issues]]></title>
      <guid>http://www.phpdeveloper.org/news/6810</guid>
      <link>http://www.phpdeveloper.org/news/6810</link>
      <description><![CDATA[<p>
On the PHP Security Blog, there's three new posts that <i>Stefan Esser</i> has written up that demonstrate some of the more destructive uses of Javascript that he's found:
<ul>
<li><a href="http://blog.php-security.org/archives/54-JavaScriptHTML-Portscanning-and-HTTP-Auth.html">JavaScript/HTML Portscanning and HTTP Auth</a>
<li><a href="http://blog.php-security.org/archives/56-Bruteforcing-HTTP-Auth-in-Firefox-with-JavaScript.html">Bruteforcing HTTP Auth in Firefox with JavaScript</a>
<li><a href="http://blog.php-security.org/archives/55-JavaScript-Scanning-and-expose_phpOn.html">JavaScript Scanning and expose_php=On</a>
</ul>
</p>
<p>
While the first two are interesting, it's the last of these that most directly applies to PHP. He gives a simple "proof of concept" that checks to see if the embedded image is the correct "size" to be related to a webserver running PHP with the expose_php setting set to "on".
</p>]]></description>
      <pubDate>Fri, 01 Dec 2006 13:22:28 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Community News: New Zend Framework Mailing Lists Announced]]></title>
      <guid>http://www.phpdeveloper.org/news/6309</guid>
      <link>http://www.phpdeveloper.org/news/6309</link>
      <description><![CDATA[<p>
Going along with the <a href="http://www.phpdeveloper.org/news/6306">Roadmap update</a> Zend has recently put out about it's <a href="http://framework.zend.com">Framework</a>, <i>Andi Gutmans</i> has also announced the introduction of more mailing lists to help developers communicate more effectively.
</p>
<blockquote>
<p>
In line with the roadmap email, I'd like to form 8 new mailing lists which will make it easier for people to discuss/participate in subject areas which are of interest to them (actually 7 new ones as docs already exists).
</p>
<p>
I did think of calling the lists fwdev-* to note them as dev lists but I think it makes more sense to keep them open to the users. I find it very valuable to get users asking questions and commeting on functionality on the dev lists as that's valuable input from the users.
</p>
</blockquote>
<p>
The new mailing lists up and running. They are:
<ul>
<li>fw-webservices@
<li>fw-mvc@
<li>fw-auth@
<li>fw-i18n@
<li>fw-db@
<li>fw-core@
<li>fw-formats@
</ul>
</p>
<p>
To check out the topics that fall under each category, check out <a href="http://www.phpdeveloper.org/news/6306">the sections of the roadmap</a>.
</p>]]></description>
      <pubDate>Tue, 19 Sep 2006 15:10:10 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPied.com: SAP container for PEAR::Auth]]></title>
      <guid>http://www.phpdeveloper.org/news/6212</guid>
      <link>http://www.phpdeveloper.org/news/6212</link>
      <description><![CDATA[<p>
If you've ever wanted to quickly and easily connect your PHP script over to a SAP server to authenticate a user but weren't sure quite how, you'll be happy to see that you can <a href="http://www.phpied.com/sap-container-for-pearauth/">use the PEAR::Auth package</a> to make the request - with a little help.
</p>
<blockquote>
<p>
<a href="http://pear.php.net/package/Auth/">PEAR::Auth</a> is a package that allows you to abstract the user authentication from the main part of your application and not worry about it. What is good about the package is that it comes with different "containers" that allows you to authenticate users against different storages.
</p>
<p>
So I played around with creating an SAP container that allows you to check users against your company's SAP system and for example build a section of your Internet (or Extranet) page that is only accessible for people and partners that exist as users in the SAP system.
</p>
</blockquote>
<p>
There's <a href="http://saprfc.sourceforge.net/">an extension to PHP</a> you'll need to get and install, but with that in place, it's as simple as setting the authentication type to "SAP" and giving it the hostname to connect to. He <a href="http://www.phpied.com/sap-container-for-pearauth/">also includes</a> some sample scripts to get you started, including the Auth_Container_SAP class that makes the magic happen.
</p>]]></description>
      <pubDate>Thu, 07 Sep 2006 07:04:09 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[MelbourneChapter.net: PHP and Authentication Security]]></title>
      <guid>http://www.phpdeveloper.org/news/5104</guid>
      <link>http://www.phpdeveloper.org/news/5104</link>
      <description><![CDATA[From the MelbourneChapter.net site, there's <a href="http://www.melbournechapter.net/wordpress/programming-languages/php/cman/2006/04/04/php-and-authentication-security/">an informative post</a> looking at user validation methods, specifically the powerful <a href="http://pear.php.net/package/Auth">PEAR::Auth package</a>.
<p>
<quote>
<i>
Once we have the user we need to authenticate the details they have submitted. To do this the usual approach is to query a 'user' table in your database to check the corresponding username and password.
<p>
This is fine in most situations, but as systems scale we often find that maintaining this user table with current user/passwords can be a lot of trouble. Often in larger systems and organisations usernames and passwords are controlled centrally. This can be in the form of a directory service, such as LDAP. Some situations you may even use a RADIUS, SAMBA, PASSWD style or POP3.
</i>
</quote>
<p>
Instead of trying to create all of the above connections, <a href="http://www.melbournechapter.net/wordpress/programming-languages/php/cman/2006/04/04/php-and-authentication-security/">they suggest</a> using the well-established <a href="http://pear.php.net/package/Auth">PEAR::Auth</a> package. They even link to <a href="http://www.melbournechapter.net/wordpress/programming-languages/php/cman/2006/03/30/php-using-libraries-without-requiring-install-on-hosting-server/">a method</a> of getting it installed on a shared hosting platform. TO finish it off, they include a reminder to always asses the security of your application, and suggest keeping an eye on the <a href="http://www.phpsec.org">PHP Security Consortium's SecurityFocus Newsletters for the latest PHP security-related issues.]]></description>
      <pubDate>Tue, 04 Apr 2006 07:29:22 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Mike's Blog: PEAR Auth and vpop-xmlrpc]]></title>
      <guid>http://www.phpdeveloper.org/news/4277</guid>
      <link>http://www.phpdeveloper.org/news/4277</link>
      <description><![CDATA[From <i>Mike</i>'s blog today, there's <a href="http://blog.iworks.at/?/archives/11_PEARAuth_and_vpop-xmlrpc.html">a quick new post</a> detailing an addition to the <a href="http://pear.php.net/package/Auth">PEAR::Auth package</a>.
<p>
<quote>
<i>
You guessed, I've written a <a href="http://dev.iworks.at/vpop-xmlrpc/VPOPXMLRPC.phps">vpop-xmlrpc container</a> for <a href="http://pear.php.net/package/Auth">PEAR::Auth</a>.
<p>
There's also a <a href="http://dev.iworks.at/vpop-xmlrpc/vpop-xmlrpc-1.1.tar.gz">new version</a> of the vpop-xmlrpc cgi, which is needed for the Auth container, because the method vpop.auth has recently been added.
</i>
</quote>
<p>
<a href="http://pear.php.net/package/Auth">PEAR::Auth</a> is a package that provides methods for creating an authentication system using PHP. It currently supports several methods of authentication, including LDAP, plaintext files, RADIUS, and SAMBA password files...]]></description>
      <pubDate>Fri, 11 Nov 2005 05:40:19 -0600</pubDate>
    </item>
  </channel>
</rss>
