Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Zend Developer Zone:
Use LiveUser for Authentication & Permission Management with the Zend Framewok
Oct 09, 2006 @ 15:21:00

On the Zend Developer Zone today, there's a new tutorial posted about using the LiveUser in conjunction with the Zend Framework to make an easy authetication and persmission system for your system.

When building a web site or application there comes a moment when you will most likely need to implement access restrictions. Two parts come in to play, first there is authentication (ususally implemented as username/password combination) and then authorization (or permission) to make sure a user is allowed to do what he is trying to do.

LiveUser provides you with a framework to make it easy to implement both aspects. It has a container approach giving a lot of flexibility in writing your own schemes if the bundled ones do not meet your needs. All containers use a unified API that makes switching between containers as painless as possible. We will see one way to integrate the Zend Framework Controller with LiveUser.

They start with a few definitions of the levels of complexity you can have for authentication on your website (simple, medium, complex) and follow it with the usual "getting started" and setup portion. They create a simple configuration array and show how to authenticate against it by including the LiveUser library and making an object with it, Factory style.

tagged: liveuser authentication permission zend framework management liveuser authentication permission zend framework management

Link:

Zend Developer Zone:
Use LiveUser for Authentication & Permission Management with the Zend Framewok
Oct 09, 2006 @ 15:21:00

On the Zend Developer Zone today, there's a new tutorial posted about using the LiveUser in conjunction with the Zend Framework to make an easy authetication and persmission system for your system.

When building a web site or application there comes a moment when you will most likely need to implement access restrictions. Two parts come in to play, first there is authentication (ususally implemented as username/password combination) and then authorization (or permission) to make sure a user is allowed to do what he is trying to do.

LiveUser provides you with a framework to make it easy to implement both aspects. It has a container approach giving a lot of flexibility in writing your own schemes if the bundled ones do not meet your needs. All containers use a unified API that makes switching between containers as painless as possible. We will see one way to integrate the Zend Framework Controller with LiveUser.

They start with a few definitions of the levels of complexity you can have for authentication on your website (simple, medium, complex) and follow it with the usual "getting started" and setup portion. They create a simple configuration array and show how to authenticate against it by including the LiveUser library and making an object with it, Factory style.

tagged: liveuser authentication permission zend framework management liveuser authentication permission zend framework management

Link:

Lukas Smith's Blog:
New PEAR releases
Aug 22, 2006 @ 20:23:13

Lukas Smith has posted about some updates for the MDB2 PEAR package he maintains, including many bug fixes and the addition of the SQLite driver.

I got annoyed be seeing the driver fail so many of the unit tests because there is no support for ALTER TABLE in SQLite version 2 that I sat down and wrote up an emulation for it. Maybe someone has use for it.

There is a lot of tricky code in there to properly read the current table layout like fields, indexes and constraints as well as the data which all should be merged with the changes if everything goes as planned. Needless to say its a somewhat risky operation, especially since SQLite does not support transactions for DDL operaitons.

He also talks about some updates he's made to the LiveUser and LiveUser_Admin packages to correct bugs found there. His next release will be the MDB2_Schema package, with some new DML additions.

tagged: pear release mdb2 mdb2_schema liveuser liveuser_admin sqlite pear release mdb2 mdb2_schema liveuser liveuser_admin sqlite

Link:

Lukas Smith's Blog:
New PEAR releases
Aug 22, 2006 @ 20:23:13

Lukas Smith has posted about some updates for the MDB2 PEAR package he maintains, including many bug fixes and the addition of the SQLite driver.

I got annoyed be seeing the driver fail so many of the unit tests because there is no support for ALTER TABLE in SQLite version 2 that I sat down and wrote up an emulation for it. Maybe someone has use for it.

There is a lot of tricky code in there to properly read the current table layout like fields, indexes and constraints as well as the data which all should be merged with the changes if everything goes as planned. Needless to say its a somewhat risky operation, especially since SQLite does not support transactions for DDL operaitons.

He also talks about some updates he's made to the LiveUser and LiveUser_Admin packages to correct bugs found there. His next release will be the MDB2_Schema package, with some new DML additions.

tagged: pear release mdb2 mdb2_schema liveuser liveuser_admin sqlite pear release mdb2 mdb2_schema liveuser liveuser_admin sqlite

Link:

Lukas Smith's Blog:
LiveUser installer and MDB2_Schema magic
Feb 09, 2006 @ 12:41:59

Lukas Smith, in his latest blog entry spotlights a feature added a while back to the MDB2 database package he develops - the ability to disable the execution of SQL queries.

A long while ago I added a seemingly idiotic feature to MDB2: The ability to disable the execution of queries.

The idea was that with the combination of a debug handler it would be possible for people to create a dump of SQL queries generated by MDB2_Schema during the installation or updating of a schema. All you would need to do is write up a debug handler for MDB2. Finally you would set the "disable_query" parameter when calling MDB2_Schema::updateDatabase() to true.

He also includes some brief code and some notes about the further development of the idea and its inclusion into other apps (LiveUser). There's also some sample output from one of his scripts to give you an idea of what the end result will be.

tagged: liveuser installer MDB2 mdb2_schema megic liveuser installer MDB2 mdb2_schema megic

Link:

Lukas Smith's Blog:
LiveUser installer and MDB2_Schema magic
Feb 09, 2006 @ 12:41:59

Lukas Smith, in his latest blog entry spotlights a feature added a while back to the MDB2 database package he develops - the ability to disable the execution of SQL queries.

A long while ago I added a seemingly idiotic feature to MDB2: The ability to disable the execution of queries.

The idea was that with the combination of a debug handler it would be possible for people to create a dump of SQL queries generated by MDB2_Schema during the installation or updating of a schema. All you would need to do is write up a debug handler for MDB2. Finally you would set the "disable_query" parameter when calling MDB2_Schema::updateDatabase() to true.

He also includes some brief code and some notes about the further development of the idea and its inclusion into other apps (LiveUser). There's also some sample output from one of his scripts to give you an idea of what the end result will be.

tagged: liveuser installer MDB2 mdb2_schema megic liveuser installer MDB2 mdb2_schema megic

Link:


Trending Topics: