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

PublicClient   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 9
ccs 0
cts 6
cp 0
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A hasCredentials() 0 3 1
A requireRedirectUri() 0 2 1
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
}