friendship ended with social-app. php is my new best friend
1<?php
2/**
3 * Interface ClientCredentials
4 *
5 * @created 29.01.2018
6 * @author smiley <smiley@chillerlan.net>
7 * @copyright 2018 smiley
8 * @license MIT
9 */
10declare(strict_types=1);
11
12namespace chillerlan\OAuth\Core;
13
14/**
15 * Indicates whether the provider is capable of the OAuth2 client credentials authentication flow.
16 *
17 * @link https://datatracker.ietf.org/doc/html/rfc6749#section-4.4
18 */
19interface ClientCredentials{
20
21 /**
22 * Obtains an OAuth2 client credentials token and returns an AccessToken
23 *
24 * @param string[]|null $scopes
25 */
26 public function getClientCredentialsToken(array|null $scopes = null):AccessToken;
27
28}