Google Shared Contacts Manager  1.0
Semestral project for BI-ZNF
LoginPresenter Class Reference

Presenter that handles User authentication. More...

Inheritance diagram for LoginPresenter:

Public Member Functions

 __construct (OAuthService $os)
 LoginPresenter constructor. More...
 
 renderDefault ()
 Display login page with Google login button. More...
 
 actionOauth2callback ()
 Handle callback from Google. More...
 
 actionLogout ()
 Logout user. More...
 
 actionReauth ()
 Redirect user to Google so he refreshes access token. More...
 

Data Fields

const PARAM_ERROR = "message"
 
const PARAM_ERROR_CODE = "error_code"
 
const PARAM_CODE = "code"
 

Private Attributes

 $oauth
 

Detailed Description

Presenter that handles User authentication.

Constructor & Destructor Documentation

◆ __construct()

__construct ( OAuthService  $os)

LoginPresenter constructor.

Parameters
OAuthService$os

Member Function Documentation

◆ actionLogout()

actionLogout ( )

Logout user.

◆ actionOauth2callback()

actionOauth2callback ( )

Handle callback from Google.

◆ actionReauth()

actionReauth ( )

Redirect user to Google so he refreshes access token.

◆ renderDefault()

renderDefault ( )

Display login page with Google login button.

Field Documentation

◆ $oauth

$oauth
private

◆ PARAM_CODE

const PARAM_CODE = "code"

◆ PARAM_ERROR

const PARAM_ERROR = "message"

◆ PARAM_ERROR_CODE

const PARAM_ERROR_CODE = "error_code"

The documentation for this class was generated from the following file: