CakeDC Navision Authenticate plugin for CakePHP
, (*1)
This CakePHP plugin allows to authenticate against a NavisionĀ® server using SOAP or OData webservices., (*2)
Installation
You can install this plugin into your CakePHP application using composer., (*3)
The recommended way to install composer packages is:, (*4)
composer require cakedc/cakephp-nav-auth
Configuration
You need to configure the following settings using Configure
:, (*5)
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' => ''
],
],
]);
Usage
The plugin includes two authenticate objects: Soap
and OData
. To use any of them (or both) you can include the following code in your AppController::initialize()
., (*6)
$this->loadComponent('Auth', [
'authenticate' => [
'CakeDC/NavAuth.Soap'
]
]);
$this->loadComponent('Auth', [
'authenticate' => [
'CakeDC/NavAuth.OData'
]
]);
Requirements
Support
For bugs and feature requests, please use the issues section of this repository., (*7)
Commercial support is also available, contact us for more information., (*8)
Contributing
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., (*9)
License
Copyright 2018 Cake Development Corporation (CakeDC). All rights reserved., (*10)
Licensed under the MIT License. Redistributions of the source code included in this repository must retain the copyright notice found in each file., (*11)
NavisionĀ® is a trademark of the Microsoft group of companies., (*12)