Download the PHP package silinternational/idp-pw-api-passwordstore-google without Composer
On this page you can find all versions of the php package silinternational/idp-pw-api-passwordstore-google. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download silinternational/idp-pw-api-passwordstore-google
More information about silinternational/idp-pw-api-passwordstore-google
Files in silinternational/idp-pw-api-passwordstore-google
Download silinternational/idp-pw-api-passwordstore-google
More information about silinternational/idp-pw-api-passwordstore-google
Files in silinternational/idp-pw-api-passwordstore-google
Vendor silinternational
Package idp-pw-api-passwordstore-google
Short Description Password store component for IdP PW API that uses Google as the backend.
License MIT
Package idp-pw-api-passwordstore-google
Short Description Password store component for IdP PW API that uses Google as the backend.
License MIT
Please rate this library. Is it a good library?
Informations about the package idp-pw-api-passwordstore-google
This repository is no longer maintained. It has been incorporated into idp-pw-api.
idp-pw-api-passwordstore-google
Password store component for IdP PW API that uses Google as the backend.
To Use
- Create a project on https://console.developers.google.com/.
- Still in the Google Developers Console, create a Service Account.
- Check "Furnish a new private key" and "Enable G Suite Domain-wide Delegation".
- Save the JSON file it provides (containing your private key), but DO NOT store it in public version control (such as in a public GitHub repo).
- Enable the "Admin SDK" API for your project in the Google Developers Console.
- Have an admin for the relevant Google Apps domain go to
http://admin.google.com/ and, under Security, Advanced, Manage API Client
Access, grant your Client ID access to the following scope:
https://www.googleapis.com/auth/admin.directory.user
- Set up a delegated admin account in Google Apps, authorized to make changes to users. You will use that email address as the value for an env. var.
- See the
local.env.dist
file to know what environment variables to provide when using this library.
Example Configuration
$googlePasswordStore = new GooglePasswordStore([
// Required config fields (dummy values are shown here):
'applicationName' => 'Name of Your Application',
'delegatedAdminEmail' => '[email protected]',
// You must provide one of these two fields:
'jsonAuthConfigBase64' => '...', // A base64-encoded string of the JSON
// auth file provided by Google.
'jsonAuthFilePath' => '/somewhere/in/your/filesystem/google-auth.json',
// Optional config fields (current defaults are shown here):
'emailFieldName' => 'email',
'employeeIdFieldName' => 'employee_id',
'userActiveRecordClass' => '\common\models\User',
]);
For details about what each of those fields is used for, see the documenting
comments in the /src/Google.php
file.
All versions of idp-pw-api-passwordstore-google with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.0.0
fillup/fake-bower-assets Version ^2.0.9
google/apiclient Version ^2.0
silinternational/idp-pw-api-common Version ^1.0
yiisoft/yii2 Version ~2.0.0
fillup/fake-bower-assets Version ^2.0.9
google/apiclient Version ^2.0
silinternational/idp-pw-api-common Version ^1.0
yiisoft/yii2 Version ~2.0.0
The package silinternational/idp-pw-api-passwordstore-google contains the following files
Loading the files please wait ....