2017 © Pedro Peláez
 

library idp-pw-api-personnel-multiple

Personnel component for IdP PW API for using multiple backends.

image

silinternational/idp-pw-api-personnel-multiple

Personnel component for IdP PW API for using multiple backends.

  • Wednesday, November 1, 2017
  • by fillup
  • Repository
  • 4 Watchers
  • 0 Stars
  • 203 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

idp-pw-api-personnel-multiple

Personnel backend component for IdP PW API for using multiple backends., (*1)

Example Usage

use Sil\IdpPw\Common\Personnel\IdBroker;
use Sil\IdpPw\Common\Personnel\Insite;
use Sil\IdpPw\Common\Personnel\Multiple\Multiple;

// ...

$multiple = new Multiple([
    'personnelBackendConfig' => [
        [
            'class'                 => IdBroker::class,
            'baseUrl'               => 'https://broker.url',
            'accessToken'           => 'abc123',
            'assertValidBrokerIp'   => true,
            'validIpRanges'         => ['10.0.20.0/16'],
        ],
        [
            'class' => Insite::class,
            'insitePeopleSearchBaseUrl'     => 'https://search.url',
            'insitePeopleSearchApiKey'      => 'abc123',
            'insitePeopleSearchApiSecret'   => 'abc123',
        ],
    ],
]);

It Matters Which order you define Personnel Backends

When iterating through personnel backends, each subsequent backend will override the PersonnelUser attributes found from previous backends., (*2)

If a user is not found in any one of the backends a NotFoundException is thrown., (*3)

If a user is found in multiple backends but the employeeId does not match for them an Exception is thrown., (*4)

The Versions

01/11 2017

dev-master

9999999-dev

Personnel component for IdP PW API for using multiple backends.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Matt Henderson

01/11 2017

0.1.2

0.1.2.0

Personnel component for IdP PW API for using multiple backends.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Matt Henderson

01/11 2017

1.0.0

1.0.0.0

Personnel component for IdP PW API for using multiple backends.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Matt Henderson

01/11 2017

dev-develop

dev-develop

Personnel component for IdP PW API for using multiple backends.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Matt Henderson

01/11 2017

0.1.1

0.1.1.0

Personnel component for IdP PW API for using multiple backends.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Matt Henderson

01/11 2017

0.1

0.1.0.0

Personnel component for IdP PW API for using multiple backends.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Matt Henderson