Skip to content

Commit 1f9b11e

Browse files
committed
Add Enum class representing Client Authentication Methods.
1 parent e2c80d3 commit 1f9b11e

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?php declare(strict_types=1);
2+
3+
namespace Pdsinterop\Solid\Auth\Enum\OpenId;
4+
5+
/**
6+
* Client Authentication Methods
7+
*
8+
* As described in Section 9 of OpenID Connect Core 1.0 [OpenID.Core]
9+
*
10+
* Other authentication methods MAY be defined by extensions.
11+
*
12+
* If omitted, the default is `client_secret_basic` the HTTP Basic
13+
* Authentication Scheme specified in Section 2.3.1 of OAuth 2.0 [RFC6749].
14+
*/
15+
class AuthenticationMethod
16+
{
17+
public const DEFAULT = self::CLIENT_SECRET_BASIC;
18+
19+
/** OpenID Connect Core */
20+
public const CLIENT_SECRET_BASIC = 'client_secret_basic';
21+
22+
/** OpenID Connect Core */
23+
public const CLIENT_SECRET_JWT = 'client_secret_jwt';
24+
25+
/** OpenID Connect Core */
26+
public const CLIENT_SECRET_POST = 'client_secret_post';
27+
28+
/** OpenID Connect Core */
29+
public const NONE = 'none';
30+
31+
/** OpenID Connect Core */
32+
public const PRIVATE_KEY_JWT = 'private_key_jwt';
33+
}

0 commit comments

Comments
 (0)