官术网_书友最值得收藏!

Chapter 1. Authentication

This chapter will cover the following topics:

  • Setting up a basic authentication system
  • Using and configuring the Auth component
  • Allowing logins with e-mail or username
  • Saving the user details after login
  • Getting the current user's information
  • Using prefixes for role-based access control
  • Setting up Access Control Layer based authentication
  • Integrating with OpenID

Introduction

This chapter explains how to set up authentication on a CakePHP application, starting from the most basic setup and finishing with advanced authorization mechanisms. This is accomplished through the use of tools that are built into the framework core, which allow us to quickly set up secure areas without losing flexibility to build more complex solutions.

The first two recipes show us how to set up a basic, yet fully working authentication system. The next three recipes allow our users to log in using different information, have their user details saved after a successful login, and show us how to get this user information. The sixth recipe shows a more complex authorization technique that relies on route prefixes. The seventh recipe sets up a complex authentication system through the use of CakePHP's Access Control Layer. Finally, the last recipe shows us how to integrate our application with OpenID.

主站蜘蛛池模板: 许昌市| 崇左市| 漳平市| 辽宁省| 分宜县| 鄂州市| 焦作市| 黄浦区| 东阳市| 安国市| 简阳市| 田林县| 阳新县| 灵璧县| 衡阳市| 雅安市| 云和县| 赫章县| 东兰县| 安龙县| 古蔺县| 漠河县| 社旗县| 延寿县| 通州市| 陈巴尔虎旗| 盐津县| 仁布县| 堆龙德庆县| 伊宁县| 莲花县| 清水河县| 葵青区| 达日县| 贞丰县| 靖江市| 无极县| 井研县| 鲁山县| 吴川市| 伊宁县|