Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2
3declare(strict_types=1);
4
5namespace LambdaTwelve\OneRecord\Auth;
6
7use LambdaTwelve\OneRecord\Rdf\Iri;
8
9/**
10 * What the token endpoint asks the host: are these client credentials valid,
11 * and which logistics agent do they belong to? The host stores secrets hashed
12 * and compares in constant time; InMemoryClientCredentials shows how.
13 */
14interface ClientCredentialsVerifier
15{
16    /**
17     * @return ?Iri the logistics agent URI the client acts as, or null when the credentials are not valid
18     */
19    public function verify(string $clientId, string $clientSecret): ?Iri;
20}