Skip to content

isabella232/idp-pw-api-passwordstore-id-broker

 
 

Repository files navigation

This repository is no longer maintained. It has been incorporated into idp-pw-api.

idp-pw-api-passwordstore-id-broker

Id Broker Password Store component for IdP PW API

Codeship Status for silinternational/idp-pw-api-passwordstore-id-broker

Configuration

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_')
    ),
]

Composer / GitHub rate limit

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.

About

Password store component for IdP PW API that uses Id Broker as backend

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 94.2%
  • Makefile 4.5%
  • Shell 1.3%