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 Authentication 4.x API

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

Namespaces

  • Authentication
    • Authenticator
    • Controller
    • Identifier
    • Middleware
    • PasswordHasher
    • UrlChecker
    • View

Class MultiUrlChecker

Multi URL Checker

Supports checking multiple login URLs, handling both string URLs and array-based CakePHP routes.

Namespace: Authentication\UrlChecker

Property Summary

  • $_defaultOptions protected
    array<string, mixed>

    Default Options

Method Summary

  • _checkSingleUrl() protected

    Check a single URL

  • _isSingleRoute() protected

    Check if the array is a single CakePHP route (not an array of routes)

  • _mergeDefaultOptions() protected

    Merge default options with provided options

  • check() public

    Checks the requests if it is the configured login action

Method Detail

_checkSingleUrl() ¶ protected

_checkSingleUrl(Psr\Http\Message\ServerRequestInterface $request, array|string $url, array<string, mixed> $options): bool

Check a single URL

Parameters
Psr\Http\Message\ServerRequestInterface $request

The request.

array|string $url

The URL to check (can be string or array).

array<string, mixed> $options

Options array.

Returns
bool

_isSingleRoute() ¶ protected

_isSingleRoute(array|string $value): bool

Check if the array is a single CakePHP route (not an array of routes)

Parameters
array|string $value

The value to check

Returns
bool

_mergeDefaultOptions() ¶ protected

_mergeDefaultOptions(array<string, mixed> $options): array<string, mixed>

Merge default options with provided options

Parameters
array<string, mixed> $options

The options to merge.

Returns
array<string, mixed>

check() ¶ public

check(Psr\Http\Message\ServerRequestInterface $request, array|string $loginUrls, array<string, mixed> $options = []): bool

Checks the requests if it is the configured login action

Parameters
Psr\Http\Message\ServerRequestInterface $request
array|string $loginUrls
array<string, mixed> $options optional
Returns
bool

Property Detail

$_defaultOptions ¶ protected

Default Options

  • useRegex Whether to use loginUrl as regular expression(s).
  • checkFullUrl Whether to check the full request URI.
Type
array<string, mixed>
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