1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
authflow.php
См. документацию.
1
<?php
2
3
namespace
Bitrix\Socialservices\Controller
;
4
5
use \Bitrix\Main\Context,
6
\
Bitrix\Main\Engine
,
7
\
Bitrix\Main\Engine\ActionFilter\Csrf
,
8
\
Bitrix\Main\Engine\ActionFilter\Authentication
;
9
10
11
class
AuthFlow
extends
Engine\Controller
12
{
13
private
const
APPLE_OAUTH_URL =
'https://appleid.apple.com/auth/authorize'
;
14
15
public
function
configureActions
():
array
16
{
17
return
[
18
'signInApple'
=> [
19
'-prefilters'
=> [
20
Csrf::class,
21
Authentication::class
22
]
23
]
24
];
25
}
26
27
public
function
signInAppleAction
(): void
28
{
29
$redirectUrl = $this->
getRequest
()->getQuery(
'url'
);
30
31
if
(!\is_string($redirectUrl))
32
{
33
return
;
34
}
35
36
if
(strpos($redirectUrl, self::APPLE_OAUTH_URL) === 0)
37
{
38
LocalRedirect
($redirectUrl,
true
);
39
die
();
40
}
41
}
42
}
Bitrix\Main\Engine\ActionFilter\Csrf
Определения
csrf.php:14
Bitrix\Main\Engine\Controller\getRequest
getRequest()
Определения
controller.php:355
Bitrix\Socialservices\Controller\AuthFlow
Определения
authflow.php:12
Bitrix\Socialservices\Controller\AuthFlow\signInAppleAction
signInAppleAction()
Определения
authflow.php:27
Bitrix\Socialservices\Controller\AuthFlow\configureActions
configureActions()
Определения
authflow.php:15
array
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения
file_new.php:804
LocalRedirect
LocalRedirect($url, $skip_security_check=false, $status="302 Found")
Определения
tools.php:4005
Bitrix\Main\Authentication
Определения
application.php:9
Bitrix\Main\Controller
Определения
agreement.php:2
Bitrix\Main\Engine
Определения
action.php:3
Bitrix\Socialservices\Controller
Определения
authflow.php:3
die
die
Определения
quickway.php:367
bitrix
modules
socialservices
lib
controller
authflow.php
Создано системой
1.14.0