Class SimpleID\Auth\AuthManager

extends Prefab

The authentication manager.

This simpleton class is responsible for managing the user's authentication session with SimpleID.

Key concepts

The authentication system involves the following key concepts:

  • Authentication level. This is the highest level of user interaction used to authenticate the user in the current session. The higher the authentication level, the more user interaction is required.
  • Authentication scheme. A SimpleID module that implements a way for a user to authenticate by checking credentials presented against some data store.
  • Authentication mode. The type of user interaction required for authentication.

Process

The authentication process works as follows:

  1. The PHP session is initialised
  2. The session variables are checked for authentication information. If the information does not exist, the user is not logged in.
  3. Invokes each authentication scheme module to see if the user can be logged in using credentials already stored in the browser (e.g. cookie, SSL certificate). Otherwise the user is not logged in.
  4. The user may attempt to log in using the routes presented by the AuthModule .
  • Prefab
    • SimpleID\Auth\AuthManager
Methods
Constants
Properties