TYPO3 CMS
TYPO3_6-2
Main Page
Related Pages
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
+
Files
File List
+
File Members
+
All
$
(
_
a
c
d
e
f
h
i
l
o
p
r
s
t
u
x
+
Functions
_
a
c
d
e
f
i
l
o
p
r
s
u
x
+
Variables
$
(
_
a
d
e
h
i
p
r
s
t
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Pages
OpenidEid.php
Go to the documentation of this file.
1
<?php
2
namespace
TYPO3\CMS\Openid
;
3
17
use
TYPO3\CMS\Core\Utility\GeneralUtility
;
18
use
TYPO3\CMS\Core\Utility\HttpUtility
;
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'
)) {
44
HttpUtility::redirect
(
GeneralUtility::_GP
(
'tx_openid_location'
),
HttpUtility::HTTP_STATUS_303
);
45
}
46
}
47
54
protected
function
getSignature
($parameter) {
55
return
GeneralUtility::hmac
($parameter,
'openid'
);
56
}
57
}
TYPO3\CMS\Core\Utility\HttpUtility\HTTP_STATUS_303
const HTTP_STATUS_303
Definition:
HttpUtility.php:36
GeneralUtility
HttpUtility
TYPO3\CMS\Core\Utility\GeneralUtility\hmac
static hmac($input, $additionalSecret='')
Definition:
GeneralUtility.php:828
TYPO3\CMS\Openid
Definition:
Exception.php:2
TYPO3\CMS\Openid\OpenidEid\main
main()
Definition:
OpenidEid.php:32
TYPO3\CMS\Openid\OpenidEid
Definition:
OpenidEid.php:25
TYPO3\CMS\Core\Utility\HttpUtility\redirect
static redirect($url, $httpStatus=self::HTTP_STATUS_303)
Definition:
HttpUtility.php:76
TYPO3\CMS\Core\Utility\GeneralUtility\_GP
static _GP($var)
Definition:
GeneralUtility.php:128
$GLOBALS
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]
Definition:
ext_localconf.php:5
TYPO3\CMS\Openid\OpenidEid\getSignature
getSignature($parameter)
Definition:
OpenidEid.php:54
typo3
sysext
openid
Classes
OpenidEid.php
Generated on Wed Aug 7 2019 09:52:29 for TYPO3 CMS by
1.8.13