Skip to content
This repository has been archived by the owner on Oct 19, 2023. It is now read-only.
/ cakephp-nav-auth Public archive

CakePHP plugin for authenticating against Navision® service using SOAP or OData services using NTLM.

License

Notifications You must be signed in to change notification settings

CakeDC/cakephp-nav-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CakeDC Navision Authenticate plugin for CakePHP

Build Status Coverage Status Downloads Latest Version License

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.