Optionalreq: AuthRequest
the request, when there is one
Optionalneed: string
on a 403, the permission the operation needs: the Bearer
challenge's scope then names the scopes that grant it (RFC 6750
section 3.1), not every published scope (#695)
the challenge strings
Returns the
WWW-Authenticatechallenges a 401 offers, in this service's order of preference: Bearer, then Basic when offered, then GNAP when offered and a request is given (itsas_urineeds the request's base).