TYPO3 CMS  TYPO3_8-7
TYPO3\CMS\Backend\FrontendBackendUserAuthentication Class Reference
Inheritance diagram for TYPO3\CMS\Backend\FrontendBackendUserAuthentication:
TYPO3\CMS\Core\Authentication\BackendUserAuthentication TYPO3\CMS\Core\Authentication\AbstractUserAuthentication

Public Member Functions

 initializeAdminPanel ()
 
 initializeFrontendEdit ()
 
 isFrontendEditingActive ()
 
 displayAdminPanel ()
 
 isAdminPanelVisible ()
 
 checkBackendAccessSettingsFromInitPhp ()
 
 extPageReadAccess ($pageRec)
 
 extGetLL ($key)
 
- Public Member Functions inherited from TYPO3\CMS\Core\Authentication\BackendUserAuthentication
 __construct ()
 
 isAdmin ()
 
 isMemberOfGroup ($groupId)
 
 doesUserHaveAccess ($row, $perms)
 
 isInWebMount ($id, $readPerms='', $exitOnError=0)
 
 modAccess ($conf, $exitOnError)
 
 getPagePermsClause ($perms)
 
 calcPerms ($row)
 
 isRTE ()
 
 check ($type, $value)
 
 checkAuthMode ($table, $field, $value, $authMode)
 
 checkLanguageAccess ($langValue)
 
 checkFullLanguagesAccess ($table, $record)
 
 recordEditAccessInternals ($table, $idOrRow, $newRecord=false, $deletedRecord=false, $checkFullLanguageAccess=false)
 
 isPSet ($compiledPermissions, $tableName, $actionType='')
 
 mayMakeShortcut ()
 
 workspaceCannotEditRecord ($table, $recData)
 
 workspaceCannotEditOfflineVersion ($table, $recData)
 
 workspaceAllowLiveRecordsInPID ($pid, $table)
 
 workspaceCreateNewRecord ($pid, $table)
 
 workspaceAllowAutoCreation ($table, $id, $recpid)
 
 workspaceCheckStageForCurrent ($stage)
 
 workspacePublishAccess ($wsid)
 
 workspaceSwapAccess ()
 
 getTSConfig ($objectString='', $config='')
 
 getTSConfigVal ($objectString)
 
 getTSConfigProp ($objectString)
 
 returnWebmounts ()
 
 setWebmounts (array $mountPointUids, $append=false)
 
 jsConfirmation ($bitmask)
 
 fetchGroupData ()
 
 fetchGroups ($grList, $idList='')
 
 setCachedList ($cList)
 
 getCategoryMountPoints ()
 
 getFileMountRecords ()
 
 getFileStorages ()
 
 evaluateUserSpecificFileFilterSettings ()
 
 getFilePermissions ()
 
 getFilePermissionsForStorage (\TYPO3\CMS\Core\Resource\ResourceStorage $storageObject)
 
 getDefaultUploadTemporaryFolder ()
 
 addTScomment ($str)
 
 workspaceInit ()
 
 checkWorkspace ($wsRec, $fields='uid, title, adminusers, members, reviewers, publish_access, stagechg_notification')
 
 checkWorkspaceCurrent ()
 
 setWorkspace ($workspaceId)
 
 setTemporaryWorkspace ($workspaceId)
 
 setDefaultWorkspace ()
 
 setWorkspacePreview ($previewState)
 
 getDefaultWorkspace ()
 
 writelog ($type, $action, $error, $details_nr, $details, $data, $tablename='', $recuid='', $recpid='', $event_pid=-1, $NEWid='', $userId=0)
 
 simplelog ($message, $extKey='', $error=0)
 
 checkLockToIP ()
 
 backendCheckLogin ($proceedIfNoUserIsLoggedIn=false)
 
 backendSetUC ()
 
 overrideUC ()
 
 resetUC ()
 
 logoff ()
 
- Public Member Functions inherited from TYPO3\CMS\Core\Authentication\AbstractUserAuthentication
 __construct ()
 
 start ()
 
 isSetSessionCookie ()
 
 isRefreshTimeBasedCookie ()
 
 createSessionId ()
 
 createUserSession ($tempuser)
 
 getNewSessionRecord ($tempuser)
 
 fetchUserSession ($skipSessionUpdate=false)
 
 enforceNewSessionId ()
 
 logoff ()
 
 removeCookie ($cookieName)
 
 isExistingSessionRecord ($id)
 
 isCookieSet ()
 
 veriCode ()
 
 writeUC ($variable='')
 
 unpack_uc ($theUC='')
 
 pushModuleData ($module, $data, $noSave=0)
 
 getModuleData ($module, $type='')
 
 getSessionData ($key)
 
 setSessionData ($key, $data)
 
 setAndSaveSessionData ($key, $data)
 
 getLoginFormData ()
 
 processLoginData ($loginData, $passwordTransmissionStrategy='')
 
 getAuthInfoArray ()
 
 compareUident ($user, $loginData, $passwordCompareStrategy='')
 
 gc ()
 
 writelog ($type, $action, $error, $details_nr, $details, $data, $tablename, $recuid, $recpid)
 
 checkLogFailures ($email, $secondsBack, $maxFailures)
 
 setBeUserByUid ($uid)
 
 setBeUserByName ($name)
 
 getRawUserByUid ($uid)
 
 getRawUserByName ($name)
 
 fetchUserRecord ($dbUser, $username, $extraWhere='')
 
 getSessionId ()
 
 getLoginType ()
 

Public Attributes

 $formfield_uname = ''
 
 $formfield_uident = ''
 
 $formfield_status = ''
 
 $writeStdLog = false
 
 $writeAttemptLog = false
 
 $extPageInTreeInfo = []
 
 $extAdmEnabled = false
 
 $adminPanel = null
 
 $frontendEdit = null
 
 $extAdminConfig = []
 
- Public Attributes inherited from TYPO3\CMS\Core\Authentication\BackendUserAuthentication
 $usergroup_column = 'usergroup'
 
 $usergroup_table = 'be_groups'
 
 $groupData
 
 $userGroups = []
 
 $userGroupsUID = []
 
 $groupList = ''
 
 $workspace = -99
 
 $workspaceRec = []
 
 $dataLists
 
 $includeGroupArray = []
 
 $TSdataArray = []
 
 $userTS_text = ''
 
 $userTS = []
 
 $userTSUpdated = false
 
 $userTS_dontGetCached = false
 
 $errorMsg = ''
 
 $checkWorkspaceCurrent_cache = null
 
 $user_table = 'be_users'
 
 $username_column = 'username'
 
 $userident_column = 'password'
 
 $userid_column = 'uid'
 
 $lastLogin_column = 'lastlogin'
 
 $enablecolumns
 
 $formfield_uname = 'username'
 
 $formfield_uident = 'userident'
 
 $formfield_status = 'login_status'
 
 $writeStdLog = true
 
 $writeAttemptLog = true
 
 $sessionTimeout = 6000
 
 $firstMainGroup = 0
 
 $uc
 
 $uc_default
 
- Public Attributes inherited from TYPO3\CMS\Core\Authentication\AbstractUserAuthentication
 $name = ''
 
 $get_name = ''
 
 $user_table = ''
 
 $usergroup_table = ''
 
 $username_column = ''
 
 $userident_column = ''
 
 $userid_column = ''
 
 $usergroup_column = ''
 
 $lastLogin_column = ''
 
 $enablecolumns
 
 $showHiddenRecords = false
 
 $formfield_uname = ''
 
 $formfield_uident = ''
 
 $formfield_status = ''
 
 $sessionTimeout = 0
 
 $auth_timeout_field = ''
 
 $lifetime = 0
 
 $gc_time = 0
 
 $gc_probability = 1
 
 $writeStdLog = false
 
 $writeAttemptLog = false
 
 $sendNoCacheHeaders = true
 
 $getFallBack = false
 
 $hash_length = 32
 
 $getMethodEnabled = false
 
 $lockIP = 4
 
 $warningEmail = ''
 
 $warningPeriod = 3600
 
 $warningMax = 3
 
 $checkPid = true
 
 $checkPid_value = 0
 
 $id
 
 $loginFailure = false
 
 $loginSessionStarted = false
 
 $user = null
 
 $get_URL_ID = ''
 
 $newSessionID = false
 
 $forceSetCookie = false
 
 $dontSetCookie = false
 
 $loginType = ''
 
 $svConfig = []
 
 $writeDevLog = false
 
 $uc
 

Protected Member Functions

 getLanguageService ()
 
- Protected Member Functions inherited from TYPO3\CMS\Core\Authentication\BackendUserAuthentication
 initializeDbMountpointsInWorkspace ()
 
 isUserAllowedToLogin ()
 
 releaseLockedRecords (int $userId)
 
- Protected Member Functions inherited from TYPO3\CMS\Core\Authentication\AbstractUserAuthentication
 setSessionCookie ()
 
 getCookieDomain ()
 
 getCookie ($cookieName)
 
 getAuthServices (string $subType, array $loginData, array $authInfo)
 
 regenerateSessionId (array $existingSessionRecord=[], bool $anonymous=false)
 
 updateLoginTimestamp (int $userId)
 
 performLogoff ()
 
 userConstraints ()
 
 user_where_clause ()
 
 ipLockClause_remoteIPNumber ($parts)
 
 getSessionBackend ()
 

Additional Inherited Members

- Static Public Member Functions inherited from TYPO3\CMS\Core\Authentication\BackendUserAuthentication
static getCookieName ()
 
- Protected Attributes inherited from TYPO3\CMS\Core\Authentication\BackendUserAuthentication
 $fileStorages
 
 $filePermissions
 
- Protected Attributes inherited from TYPO3\CMS\Core\Authentication\AbstractUserAuthentication
 $cookieWasSetOnCurrentRequest = false
 
 $sessionBackend
 
 $sessionData = []
 

Detailed Description

TYPO3 backend user authentication in the TSFE frontend. This includes mainly functions related to the Admin Panel

Definition at line 31 of file FrontendBackendUserAuthentication.php.

Member Function Documentation

◆ checkBackendAccessSettingsFromInitPhp()

TYPO3\CMS\Backend\FrontendBackendUserAuthentication::checkBackendAccessSettingsFromInitPhp ( )

Implementing the access checks that the TYPO3 CMS bootstrap script does before a user is ever logged in. Used in the frontend.

Returns
bool Returns TRUE if access is OK

Definition at line 187 of file FrontendBackendUserAuthentication.php.

References $GLOBALS, TYPO3\CMS\Core\Authentication\BackendUserAuthentication\checkLockToIP(), TYPO3\CMS\Core\Utility\GeneralUtility\cmpIP(), TYPO3\CMS\Core\Utility\GeneralUtility\getIndpEnv(), and TYPO3\CMS\Core\Authentication\BackendUserAuthentication\isUserAllowedToLogin().

◆ displayAdminPanel()

TYPO3\CMS\Backend\FrontendBackendUserAuthentication::displayAdminPanel ( )

Delegates to the appropriate view and renders the admin panel content.

Returns
string.

Definition at line 161 of file FrontendBackendUserAuthentication.php.

◆ extGetLL()

TYPO3\CMS\Backend\FrontendBackendUserAuthentication::extGetLL (   $key)

Returns the label for key. If a translation for the language set in $this->uc['lang'] is found that is returned, otherwise the default value. If the global variable $LOCAL_LANG is NOT an array (yet) then this function loads the global $LOCAL_LANG array with the content of "EXT:lang/Resources/Private/Language/locallang_tsfe.xlf" such that the values therein can be used for labels in the Admin Panel

Parameters
string$keyKey for a label in the $GLOBALS['LOCAL_LANG'] array of "EXT:lang/Resources/Private/Language/locallang_tsfe.xlf
Returns
string The value for the $key

Definition at line 315 of file FrontendBackendUserAuthentication.php.

References $GLOBALS, and TYPO3\CMS\Backend\FrontendBackendUserAuthentication\getLanguageService().

◆ extPageReadAccess()

TYPO3\CMS\Backend\FrontendBackendUserAuthentication::extPageReadAccess (   $pageRec)

Evaluates if the Backend User has read access to the input page record. The evaluation is based on both read-permission and whether the page is found in one of the users webmounts. Only if both conditions match, will the function return TRUE.

Read access means that previewing is allowed etc.

Used in

Parameters
array$pageRecThe page record to evaluate for
Returns
bool TRUE if read access

Definition at line 223 of file FrontendBackendUserAuthentication.php.

References $GLOBALS, TYPO3\CMS\Core\Authentication\AbstractUserAuthentication\$id, TYPO3\CMS\Core\Authentication\BackendUserAuthentication\doesUserHaveAccess(), TYPO3\CMS\Core\Authentication\BackendUserAuthentication\isInWebMount(), TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance(), TYPO3\CMS\Core\Type\Bitmask\Permission\PAGE_SHOW, and TYPO3\CMS\Core\Database\Query\QueryHelper\stripLogicalOperatorPrefix().

◆ getLanguageService()

TYPO3\CMS\Backend\FrontendBackendUserAuthentication::getLanguageService ( )
protected
Returns
LanguageService

Definition at line 329 of file FrontendBackendUserAuthentication.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Backend\FrontendBackendUserAuthentication\extGetLL().

◆ initializeAdminPanel()

TYPO3\CMS\Backend\FrontendBackendUserAuthentication::initializeAdminPanel ( )

◆ initializeFrontendEdit()

TYPO3\CMS\Backend\FrontendBackendUserAuthentication::initializeFrontendEdit ( )

◆ isAdminPanelVisible()

TYPO3\CMS\Backend\FrontendBackendUserAuthentication::isAdminPanelVisible ( )

Determines whether the admin panel is enabled and visible.

Returns
bool true if the admin panel is enabled and visible

Definition at line 171 of file FrontendBackendUserAuthentication.php.

References $GLOBALS.

◆ isFrontendEditingActive()

TYPO3\CMS\Backend\FrontendBackendUserAuthentication::isFrontendEditingActive ( )

Determines whether frontend editing is currently active.

Returns
bool Whether frontend editing is active

Definition at line 147 of file FrontendBackendUserAuthentication.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Backend\FrontendBackendUserAuthentication\initializeFrontendEdit().

Member Data Documentation

◆ $adminPanel

TYPO3\CMS\Backend\FrontendBackendUserAuthentication::$adminPanel = null

Definition at line 86 of file FrontendBackendUserAuthentication.php.

◆ $extAdmEnabled

TYPO3\CMS\Backend\FrontendBackendUserAuthentication::$extAdmEnabled = false

Definition at line 81 of file FrontendBackendUserAuthentication.php.

◆ $extAdminConfig

TYPO3\CMS\Backend\FrontendBackendUserAuthentication::$extAdminConfig = []

Definition at line 96 of file FrontendBackendUserAuthentication.php.

◆ $extPageInTreeInfo

TYPO3\CMS\Backend\FrontendBackendUserAuthentication::$extPageInTreeInfo = []

Definition at line 74 of file FrontendBackendUserAuthentication.php.

◆ $formfield_status

TYPO3\CMS\Backend\FrontendBackendUserAuthentication::$formfield_status = ''

Definition at line 53 of file FrontendBackendUserAuthentication.php.

◆ $formfield_uident

TYPO3\CMS\Backend\FrontendBackendUserAuthentication::$formfield_uident = ''

Definition at line 45 of file FrontendBackendUserAuthentication.php.

◆ $formfield_uname

TYPO3\CMS\Backend\FrontendBackendUserAuthentication::$formfield_uname = ''

Definition at line 38 of file FrontendBackendUserAuthentication.php.

◆ $frontendEdit

TYPO3\CMS\Backend\FrontendBackendUserAuthentication::$frontendEdit = null

Definition at line 91 of file FrontendBackendUserAuthentication.php.

◆ $writeAttemptLog

TYPO3\CMS\Backend\FrontendBackendUserAuthentication::$writeAttemptLog = false

Definition at line 67 of file FrontendBackendUserAuthentication.php.

◆ $writeStdLog

TYPO3\CMS\Backend\FrontendBackendUserAuthentication::$writeStdLog = false

Definition at line 60 of file FrontendBackendUserAuthentication.php.