ArcheAuthenticationController
extends ArcheBaseController
in package
Description of ArcheAuthenticationController
Tags
Table of Contents
Properties
- $config : Config
- $helper : mixed
- $model : mixed
- $ontology : Ontology
- $pdo : PDO
- $repoDb : RepoDb
- $schema : Schema
- $siteLang : mixed
- $actualPage : mixed
- $roles : mixed
Methods
- __construct() : mixed
- checkUserPermission() : Response
- check the logged or not logged user rights and the actual resource rights
- changeAPILanguage() : void
- If the API needs a different response language then we have to change the session lang params to get the desired lang string translation
- checkHttpLogin() : array<string|int, mixed>
- Check if the user logged in with httpd
- checkShibbolethLogin() : array<string|int, mixed>
- Check if the user logged in with Shibboleth
- checkTmpDirs() : mixed
- getCurrentLanguage() : type
- Get the site actual language
Properties
$config
protected
Config
$config
$helper
protected
mixed
$helper
$model
protected
mixed
$model
$ontology
protected
Ontology
$ontology
$pdo
protected
PDO
$pdo
$repoDb
protected
RepoDb
$repoDb
$schema
protected
Schema
$schema
$siteLang
protected
mixed
$siteLang
$actualPage
private
mixed
$actualPage
$roles
private
mixed
$roles
= []
Methods
__construct()
public
__construct() : mixed
checkUserPermission()
check the logged or not logged user rights and the actual resource rights
public
checkUserPermission(string $resId[, string $aclRead = "" ]) : Response
Parameters
- $resId : string
- $aclRead : string = ""
Return values
ResponsechangeAPILanguage()
If the API needs a different response language then we have to change the session lang params to get the desired lang string translation
protected
changeAPILanguage(string $lang) : void
Parameters
- $lang : string
checkHttpLogin()
Check if the user logged in with httpd
private
checkHttpLogin(string $aclRead) : array<string|int, mixed>
Parameters
- $aclRead : string
Return values
array<string|int, mixed>checkShibbolethLogin()
Check if the user logged in with Shibboleth
private
checkShibbolethLogin(string $aclRead) : array<string|int, mixed>
Parameters
- $aclRead : string
Return values
array<string|int, mixed>checkTmpDirs()
private
checkTmpDirs() : mixed
getCurrentLanguage()
Get the site actual language
private
getCurrentLanguage() : type