cakedc / cakephp-nav-auth
CakeDC Navision Authentication plugin for CakePHP
Installs: 44
Dependents: 0
Suggesters: 0
Security: 0
Stars: 9
Watchers: 10
Forks: 0
Open Issues: 0
Type:cakephp-plugin
Requires
- cakephp/cakephp: ^3.4
Requires (Dev)
- phpunit/phpunit: ^5.7|^6.0
Suggests
- cakedc/users: Provides users management including RBAC, social login, and more
This package is auto-updated.
Last update: 2023-11-12 03:11:39 UTC
README
This CakePHP plugin allows to authenticate against a Navision® server using SOAP or OData webservices.
Installation
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
Configuration
You need to configure the following settings using Configure
:
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()
.
$this->loadComponent('Auth', [
'authenticate' => [
'CakeDC/NavAuth.Soap'
]
]);
$this->loadComponent('Auth', [
'authenticate' => [
'CakeDC/NavAuth.OData'
]
]);
Requirements
- CakePHP 3.4.0+
- PHP 7.1+
Support
For bugs and feature requests, please use the issues section of this repository.
Commercial support is also available, contact us for more information.
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.
License
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.