AuthenticationChallenge
class AuthenticationChallenge
Methods
__construct(Repository $config, ExceptionHandler $exceptions, AuthManager $auth, ServerFactory $servers)
Create the resource authentication challenge formatter.
string
void
void
forException(Request $request, AuthenticationException|MissingScopeException $exception, array|null $scopes = null)
Add a challenge to this middleware failure without replacing its rendered body.
Details
at line 25
__construct(Repository $config, ExceptionHandler $exceptions, AuthManager $auth, ServerFactory $servers)
Create the resource authentication challenge formatter.
at line 38
string
header(Request $request, string|null $error = null, array $scopes = [])
Describe the supported schemes and the supplied credential's error.
at line 68
void
forGuard(Request $request, string $guard)
Add a challenge if this guard's failure becomes an authentication response.
at line 92
void
forException(Request $request, AuthenticationException|MissingScopeException $exception, array|null $scopes = null)
Add a challenge to this middleware failure without replacing its rendered body.