Completed
Push — master ( d9a404...9e6750 )
by Alexandre
02:12
created

PublicClient::hasCredentials()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 3
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: Alexandre
5
 * Date: 07/01/2018
6
 * Time: 13:37
7
 */
8
9
namespace OAuth2\Roles\Clients;
10
11
12
/**
13
 * Class PublicClientType
14
 * @package OAuth2\Roles\Clients\Types
15
 *
16
 * @see https://tools.ietf.org/html/rfc6749#section-2.1
17
 *
18
 * Client Types
19
 *
20
 *     Clients incapable of maintaining the confidentiality of their
21
 * credentials (e.g., clients executing on the device used by the
22
 * resource owner, such as an installed native application or a web
23
 * browser-based application), and incapable of secure client
24
 * authentication via any other means.
25
 */
26
abstract class PublicClient extends RegisteredClient
27
{
28
    public function hasCredentials(): bool
29
    {
30
        return false;
31
    }
32
33
    public function requireRedirectUri() : bool {
34
        return true;
35
    }
36
}