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