TYPO3 CMS  TYPO3_6-2
OpenidEid.php
Go to the documentation of this file.
1 <?php
2 namespace TYPO3\CMS\Openid;
3 
19 
25 class OpenidEid {
26 
32  public function main() {
33  // Due to the nature of OpenID (redrections, etc) we need to force user
34  // session fetching if there is no session around. This ensures that
35  // our service is called even if there is no login data in the request.
36  // Inside the service we will process OpenID response and authenticate
37  // the user.
38  $GLOBALS['TYPO3_CONF_VARS']['SVCONF']['auth']['FE_fetchUserIfNoSession'] = TRUE;
39  // Initialize Frontend user
40  \TYPO3\CMS\Frontend\Utility\EidUtility::initFeUser();
41  // Redirect to the original location in any case (authenticated or not)
42  @ob_end_clean();
43  if ($this->getSignature(GeneralUtility::_GP('tx_openid_location')) === GeneralUtility::_GP('tx_openid_location_signature')) {
45  }
46  }
47 
54  protected function getSignature($parameter) {
55  return GeneralUtility::hmac($parameter, 'openid');
56  }
57 }
static hmac($input, $additionalSecret='')
static redirect($url, $httpStatus=self::HTTP_STATUS_303)
Definition: HttpUtility.php:76
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]