CakePHP
  • Documentation
    • Book
    • API
    • Videos
    • Reporting Security Issues
    • Privacy Policy
    • Logos & Trademarks
  • Business Solutions
  • Swag
  • Road Trip
  • Team
  • Community
    • Community
    • Get Involved
    • Issues (Github)
    • Bakery
    • Featured Resources
    • Training
    • Meetups
    • My CakePHP
    • CakeFest
    • Newsletter
    • Linkedin
    • YouTube
    • Facebook
    • Twitter
    • Mastodon
    • Help & Support
    • Forum
    • Stack Overflow
    • IRC
    • Slack
    • Paid Support
CakePHP

C Authorization 2.x API

  • Project:
    • Authorization
      • CakePHP
      • Authentication
      • Authorization
      • Chronos
      • Elastic Search
      • Queue
  • Version:
    • 2.x
      • 3.x
      • 2.x

Namespaces

  • Authorization
    • Command
    • Controller
    • Exception
    • Middleware
      • UnauthorizedHandler
    • Policy

Interface HandlerInterface

This interface defines an API for handling unauthorized requests.

Namespace: Authorization\Middleware\UnauthorizedHandler

Method Summary

  • handle() public

    Handles the unauthorized request. The modified response should be returned.

Method Detail

handle() ΒΆ public

handle(Authorization\Exception\Exception $exception, Psr\Http\Message\ServerRequestInterface $request, array $options = []): Psr\Http\Message\ResponseInterface

Handles the unauthorized request. The modified response should be returned.

Parameters
Authorization\Exception\Exception $exception

Authorization exception thrown by the application.

Psr\Http\Message\ServerRequestInterface $request

Server request.

array $options optional

Options array.

Returns
Psr\Http\Message\ResponseInterface
OpenHub
Pingping
Linode
  • Business Solutions
  • Showcase
  • Documentation
  • Book
  • API
  • Videos
  • Reporting Security Issues
  • Privacy Policy
  • Logos & Trademarks
  • Community
  • Get Involved
  • Issues (Github)
  • Bakery
  • Featured Resources
  • Training
  • Meetups
  • My CakePHP
  • CakeFest
  • Newsletter
  • Linkedin
  • YouTube
  • Facebook
  • Twitter
  • Mastodon
  • Help & Support
  • Forum
  • Stack Overflow
  • IRC
  • Slack
  • Paid Support

Generated using CakePHP API Docs