Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub license GitHub tag (latest SemVer) Packagist Packagist Downloads GitHub issues GitHub forks GitHub stars

IP Authenticator for CakePHP 4 Authentication plugin

This plugin provides an IP Authenticator for CakePHP 4 authentication plugin.

Table of contents

Requirements

TOC

Installation

Install this plugin into your application using composer:

  • Add fawno/ip-authentication package to your project:
      composer require fawno/ip-authentication
  • Load the IPAuthenticator in your Application.php:
    use IPAuthenticator\Authenticator\IPAuthenticator;
  • Load the IPAuthenticator in your Authentication Service (Application.php):
    // Load the authenticators. Session should be first.
    $service->loadAuthenticator('Authentication.Session');
    
    $service->loadAuthenticator(IPAuthenticator::class, [
        'auth' => [
            '127.0.0.1' => [
                'username' => 'localhost',
                'displayname' => 'Local Host',
                'dn' => [],
                'memberof' => [
                    'Group' => 'Group',
                ],
            ],
        ],
    ]);

TOC

About

IP Authenticator for CakePHP 4 Authentication plugin

Topics

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages