1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
authflow.php
См. документацию.
1<?php
2
4
5use \Bitrix\Main\Context,
9
10
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}
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
LocalRedirect($url, $skip_security_check=false, $status="302 Found")
Определения tools.php:4005
Определения action.php:3
die
Определения quickway.php:367