This repository is no longer maintained. It has been incorporated into idp-pw-api.
Id Broker Password Store component for IdP PW API
This code is loaded in as a Yii2 Component in the main config file. Here is an example:
'components' => [
'passwordStore' => [
'class' => 'Sil\IdpPw\PasswordStore\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:
'components' => [
'passwordStore' => ArrayHelper::merge(
['class' => 'Sil\IdpPw\PasswordStore\IdBroker\IdBroker'],
Env::getArrayFromPrefix('ID_BROKER_')
),
]
If you hit problems of composer unable to pull the necessary dependencies
due to a GitHub rate limit, copy the auth.json.dist
file to auth.json
and
provide a GitHub auth token.