Passed
Push — master ( 59e24a...44a41f )
by Olha
09:18
created

getRestApiMultiFactorAuthProtectedResources()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
dl 0
loc 9
rs 10
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\Glue\MultiFactorAuth;
11
12
use Spryker\Glue\MultiFactorAuth\MultiFactorAuthConfig as SprykerMultiFactorAuthConfig;
13
14
class MultiFactorAuthConfig extends SprykerMultiFactorAuthConfig
15
{
16
    /**
17
     * @return array<string>
18
     */
19
    public function getRestApiMultiFactorAuthProtectedResources(): array
20
    {
21
        return [
22
            'customer-password',
23
            'customers',
24
            'addresses',
25
            'carts',
26
            'checkout',
27
            'order-payments',
28
        ];
29
    }
30
31
    /**
32
     * @return array<string>
33
     */
34
    public function getMultiFactorAuthProtectedBackendResources(): array
35
    {
36
        return [
37
            'warehouse-user-assignments',
38
        ];
39
    }
40
41
    /**
42
     * @return array<string>
43
     */
44
    public function getMultiFactorAuthProtectedStorefrontResources(): array
45
    {
46
        return [];
47
    }
48
}
49