-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPAR.php
35 lines (30 loc) · 849 Bytes
/
PAR.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
/**
* Interface PAR
*
* @created 10.05.2024
* @author smiley <smiley@chillerlan.net>
* @copyright 2024 smiley
* @license MIT
*/
declare(strict_types=1);
namespace chillerlan\OAuth\Core;
use Psr\Http\Message\UriInterface;
/**
* Specifies the methods required for the OAuth2 Pushed Authorization Requests (PAR)
*
* @link https://datatracker.ietf.org/doc/html/rfc9126
*/
interface PAR{
/**
* Sends the given authorization request parameters to the PAR endpoint and returns
* the full authorization URL including the URN obtained from the PAR request
*
* @see \chillerlan\OAuth\Core\OAuth2Provider::$parAuthorizationURL
*
* @link https://datatracker.ietf.org/doc/html/rfc9126#section-1.1
*
* @param array<string, string> $body
*/
public function getParRequestUri(array $body):UriInterface;
}