2017-25 © Pedro Peláez
 

library idp-pw-api-personnel-id-broker

IdP Password Management personnel component for ID Broker

image

silinternational/idp-pw-api-personnel-id-broker

IdP Password Management personnel component for ID Broker

  • Monday, July 30, 2018
  • by fillup
  • Repository
  • 4 Watchers
  • 0 Stars
  • 381 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 10 Versions
  • 9 % Grown

The README.md

ARCHIVED

This repository is no longer maintained. It has been incorporated into idp-pw-api., (*1)


idp-pw-api-personnel-idbroker

IdP Password Management personnel component for ID Broker, (*2)

Summary

This project has one class (IdBroker) with three public methods which use the ID Broker php client to get person data from the ID Broker service. Each of these functions attaches that data to a PersonnelUser instance which it then returns., (*3)

The public methods are ..., (*4)

  • findByEmployeeId($employeeId) // Preferred method
  • findByUsername($username)
  • findByEmail($email)

Configuration

This code is loaded in as a Yii2 Component in the main config file. Here is an example:, (*5)

'components' => [
    'personnel' => [
        'class' => 'Sil\IdpPw\Common\Personnel\IdBroker\IdBroker',
        'baseUrl' => Env::requireEnv('ID_BROKER_BASE_URI'),
        'accessToken' => Env::requireEnv('ID_BROKER_ACCESS_TOKEN'),
        'assertValidBrokerIp' => true,
        'validIpRanges' => ['10.0.01/16','127.0.0.1/32'],
    ],
]

A more concise example:, (*6)

'components' => [
    'personnel' => ArrayHelper::merge(
        ['class' => 'Sil\IdpPw\Common\Personnel\IdBroker\IdBroker'],
        Env::getArrayFromPrefix('ID_BROKER_')
    ),
]

Run the Unit Tests

$ docker-compose run --rm test

The Versions

30/07 2018

dev-feature/also-get-manager-and-spouse-email

dev-feature/also-get-manager-and-spouse-email

IdP Password Management personnel component for ID Broker

  Sources   Download

MIT

The Requires

 

The Development Requires