cakedc/cakephp-nav-auth

This package is abandoned and no longer maintained. No replacement package was suggested.

CakeDC Navision Authentication plugin for CakePHP

Installs: 43

Dependents: 0

Suggesters: 0

Security: 0

Stars: 9

Watchers: 10

Forks: 0

Open Issues: 0

Type:cakephp-plugin

1.0.2 2018-03-09 14:11 UTC

This package is auto-updated.

Last update: 2023-11-12 03:11:39 UTC


README

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.