Skip to content

[READ ONLY] Subtree split of the snicco/wp-auth-only-middleware package (see snicco/snicco).

License

Notifications You must be signed in to change notification settings

snicco/wp-auth-only-middleware

Repository files navigation

WordPress authentication middleware for snicco/http-routing

codecov Psalm Type-Coverage Psalm level PhpMetrics - Static Analysis PHP-Versions

This middleware checks if a WordPress user is logged in and will throw a 401 HTTPExcetion if that's not the case.

Installation

composer require snicco/wp-auth-only-middleware

Usage

This middleware should be added on a per-route basis.

There are no configuration options.

use Snicco\Middleware\WPCap\AuthorizeWPCap;

$configurator->get('route1', '/route1', SomeController::class)
             ->middleware(AuthenticateWPUser::class);

Contributing

This repository is a read-only split of the development repo of the Snicco project.

This is how you can contribute.

Reporting issues and sending pull requests

Please report issues in the Snicco monorepo.

Security

If you discover a security vulnerability, please follow our disclosure procedure.

About

[READ ONLY] Subtree split of the snicco/wp-auth-only-middleware package (see snicco/snicco).

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages