Skip to content

Commit 10ffc9e

Browse files
committed
:octocat: added OAuth21Interface and OAuth21Provider (WIP #5)
1 parent 8564a98 commit 10ffc9e

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

src/Core/OAuth21Interface.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?php
2+
/**
3+
* Interface OAuth21Interface
4+
*
5+
* @created 04.08.2024
6+
* @author smiley <[email protected]>
7+
* @copyright 2024 smiley
8+
* @license MIT
9+
*/
10+
declare(strict_types=1);
11+
12+
namespace chillerlan\OAuth\Core;
13+
14+
/**
15+
* Specifies the basic methods for an OAuth2.1 provider. (WIP)
16+
*/
17+
interface OAuth21Interface extends OAuth2Interface, CSRFToken, PKCE{
18+
19+
}

src/Core/OAuth21Provider.php

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?php
2+
/**
3+
* Class OAuth21Provider
4+
*
5+
* @created 04.08.2024
6+
* @author smiley <[email protected]>
7+
* @copyright 2024 smiley
8+
* @license MIT
9+
*/
10+
declare(strict_types=1);
11+
12+
namespace chillerlan\OAuth\Core;
13+
14+
/**
15+
* Implements an abstract OAuth 2.1 provider (WIP)
16+
*
17+
* @link https://datatracker.ietf.org/doc/html/draft-ietf-oauth-v2-1-13
18+
*/
19+
class OAuth21Provider extends OAuth2Provider implements OAuth21Interface{
20+
use PKCETrait;
21+
22+
}

0 commit comments

Comments
 (0)