CakeDC Navision Authentication plugin for CakePHP
This CakePHP plugin allows to authenticate against a Navision® server using SOAP or OData webservices.
You can install this plugin into your CakePHP application using composer.
The recommended way to install composer packages is:
composer require cakedc/cakephp-nav-auth
You need to configure the following settings using
Configure::write('NavAuth', [ 'url' => [ 'soap' => [ // Protocol (http, https) 'protocol' => 'https', // Server 'server' => '', // Port 'port' => '', // Instance 'instance' => '', // Company String 'company' => '', //Type 'type' => '', //Endpoint 'endpoint' => '', //Function 'function => '' ], 'odata' => [ //Protocol (http, https) 'protocol' => 'https', //Server 'server' => '', //Port 'port' => '', //Instance 'instance' => '', //Method 'method' => '', //Type (usually empty for odata) 'type' => '', //Company String 'company' => '', //Endpoint 'endpoint' => '', ] ], 'auth' => [ // NTML authentication params 'ntlm' => [ 'domain' => '', 'username' => '', 'password' => '' ], ], ]);
The plugin includes two authenticate objects:
OData. To use any of them (or both) you can include the following code in your
$this->loadComponent('Auth', [ 'authenticate' => [ 'CakeDC/NavAuth.Soap' ] ]);
$this->loadComponent('Auth', [ 'authenticate' => [ 'CakeDC/NavAuth.OData' ] ]);
- CakePHP 3.4.0+
- PHP 7.1+
For bugs and feature requests, please use the issues section of this repository.
Commercial support is also available, contact us for more information.
This repository follows the CakeDC Plugin Standard. If you'd like to contribute new features, enhancements or bug fixes to the plugin, please read our Contribution Guidelines for detailed instructions.
Copyright 2018 Cake Development Corporation (CakeDC). All rights reserved.
Licensed under the MIT License. Redistributions of the source code included in this repository must retain the copyright notice found in each file.
Navision® is a trademark of the Microsoft group of companies.