Passed
Push — master ( 185b2c...24e5ac )
by Olha
08:12
created

getProtectedPaths()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 17
Code Lines 11

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 11
dl 0
loc 17
rs 9.9
c 1
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
/**
4
 * This file is part of the Spryker Commerce OS.
5
 * For full license information, please view the LICENSE file that was distributed with this source code.
6
 */
7
8
declare(strict_types = 1);
9
10
namespace Pyz\Shared\GlueBackendApiApplicationAuthorizationConnector;
11
12
use Spryker\Shared\GlueBackendApiApplicationAuthorizationConnector\GlueBackendApiApplicationAuthorizationConnectorConfig as SprykerGlueBackendApiApplicationAuthorizationConnectorConfig;
13
14
class GlueBackendApiApplicationAuthorizationConnectorConfig extends SprykerGlueBackendApiApplicationAuthorizationConnectorConfig
15
{
16
    /**
17
     * Specification:
18
     * - Returns a list of protected endpoints.
19
     * - Structure example:
20
     * [
21
     *      '/example' => [
22
     *          'isRegularExpression' => false,
23
     *      ],
24
     *      '/\/example\/.+/' => [
25
     *          'isRegularExpression' => true,
26
     *          'methods' => [
27
     *              'patch',
28
     *              'delete',
29
     *          ],
30
     *      ],
31
     * ]
32
     *
33
     * @return array<string, mixed>
34
     */
35
    public function getProtectedPaths(): array
36
    {
37
        return [
38
            '/multi-factor-auth-types' => [
39
                'isRegularExpression' => false,
40
            ],
41
            '/multi-factor-auth-trigger' => [
42
                'isRegularExpression' => false,
43
            ],
44
            '/multi-factor-auth-type-activate' => [
45
                'isRegularExpression' => false,
46
            ],
47
            '/multi-factor-auth-type-verify' => [
48
                'isRegularExpression' => false,
49
            ],
50
            '/multi-factor-auth-type-deactivate' => [
51
                'isRegularExpression' => false,
52
            ],
53
        ];
54
    }
55
}
56