|
TYPO3 API
SVNRelease
|
00001 <?php 00002 // Make sure that we are executed only from the inside of TYPO3 00003 if (!defined ('TYPO3_MODE')) { 00004 die ('Access denied.'); 00005 } 00006 00007 // Register OpenID authentication service with TYPO3 00008 t3lib_extMgm::addService($_EXTKEY, 'auth' /* sv type */, 'tx_openid_sv1' /* sv key */, 00009 array( 00010 'title' => 'OpenID Authentication', 00011 'description' => 'OpenID authentication service for Frontend and Backend', 00012 'subtype' => 'getUserFE,authUserFE,getUserBE,authUserBE', 00013 'available' => true, 00014 'priority' => 75, // Must be higher than for tx_sv_auth (50) or tx_sv_auth will deny request unconditionally 00015 'quality' => 50, 00016 'os' => '', 00017 'exec' => '', 00018 'classFile' => t3lib_extMgm::extPath($_EXTKEY).'sv1/class.tx_openid_sv1.php', 00019 'className' => 'tx_openid_sv1', 00020 ) 00021 ); 00022 00023 // Register eID script that performs final FE user authentication. It will be called by the OpenID provider 00024 $GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['tx_openid'] = 'EXT:openid/class.tx_openid_eid.php'; 00025 00026 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['setup']['accessLevelCheck']['tx_openid_mod_setup'] = 'EXT:openid/class.tx_openid_mod_setup.php'; 00027 00028 // Use popup window to refresh login instead of the AJAX relogin: 00029 $TYPO3_CONF_VARS['BE']['showRefreshLoginPopup'] = 1; 00030 ?>
1.8.0