CheckTokenAudience
class CheckTokenAudience extends ValidateToken
Methods
static string
using(array|string $param, string ...$params)
Specify the accepted resource identifiers for the middleware.
Response
from
ValidateToken
from
ValidateToken
void
validate(ScopeAuthorizable $token, string ...$params)
Require an access token intended for at least one configured resource.
Details
in
ValidateToken at line 24
__construct(ServerFactory $servers)
Create a new middleware instance.
at line 18
static string
using(array|string $param, string ...$params)
Specify the accepted resource identifiers for the middleware.
in
ValidateToken at line 48
Response
handle(Request $request, Closure $next, string ...$params)
Handle an incoming request.
in
ValidateToken at line 76
protected ScopeAuthorizable
validateToken(Request $request)
Validate and get the request's access token.
at line 32
protected void
validate(ScopeAuthorizable $token, string ...$params)
Require an access token intended for at least one configured resource.