Passed
Pull Request — master (#62)
by Michael
15:25
created

getAccessTokenValidatorPlugins()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 4
rs 10
c 0
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
namespace Pyz\Client\Oauth;
9
10
use Spryker\Client\Oauth\OauthDependencyProvider as SprykerOauthDependencyProvider;
11
use Spryker\Client\OauthCryptography\Communication\Plugin\Oauth\BearerTokenAuthorizationValidatorPlugin;
12
use Spryker\Client\OauthCryptography\Communication\Plugin\Oauth\FileSystemKeyLoaderPlugin;
13
use Spryker\Client\OauthCustomerValidation\Plugin\Oauth\ValidateInvalidatedCustomerAccessTokenValidatorPlugin;
14
15
class OauthDependencyProvider extends SprykerOauthDependencyProvider
16
{
17
    /**
18
     * @return array<\Spryker\Client\OauthExtension\Dependency\Plugin\KeyLoaderPluginInterface>
19
     */
20
    protected function getKeyLoaderPlugins(): array
21
    {
22
        return [
23
            new FileSystemKeyLoaderPlugin(),
24
        ];
25
    }
26
27
    /**
28
     * @return array<\Spryker\Client\OauthExtension\Dependency\Plugin\AuthorizationValidatorPluginInterface>
29
     */
30
    protected function getAuthorizationValidatorPlugins(): array
31
    {
32
        return [
33
            new BearerTokenAuthorizationValidatorPlugin(),
34
        ];
35
    }
36
37
    /**
38
     * @return array<\Spryker\Client\OauthExtension\Dependency\Plugin\AccessTokenValidatorPluginInterface>
39
     */
40
    protected function getAccessTokenValidatorPlugins(): array
41
    {
42
        return [
43
            new ValidateInvalidatedCustomerAccessTokenValidatorPlugin(),
44
        ];
45
    }
46
}
47