Book Image

FuelPHP Application Development Blueprints

By : Sebastien Drouyer
Book Image

FuelPHP Application Development Blueprints

By: Sebastien Drouyer

Overview of this book

Table of Contents (13 chapters)
FuelPHP Application Development Blueprints
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

The Auth package


If you take a look at your database now, you should see that many tables with names that are prefixed by the users keyword, have been created:

  • users

  • users_clients

  • users_groups

  • users_group_permissions

  • users_group_roles

  • users_metadata

  • users_permissions

  • users_providers

  • users_roles

  • users_role_permissions

  • users_scopes

  • users_sessions

  • users_sessionscopes

  • users_user_permissions

  • users_user_roles

The Ormauth driver of the Auth package manages these tables, and some of them are linked to models located at PKGPATH/auth/classes/model/auth. As explained earlier, the driver provides a much more complete solution than a simple authentication system, as it manages users, groups, roles, and permissions.

It is important to point out that two other drivers exist:

  • Simpleauth, which is a much simpler driver than Ormauth and only manages users, groups and roles.

  • Opauth, which allows users to connect using OAuth or OpenID providers including Facebook, Twitter, or Google.

As we will use only a very small part of...