Download the PHP package itk-dev/azure-ad-delta-sync-bundle without Composer
On this page you can find all versions of the php package itk-dev/azure-ad-delta-sync-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download itk-dev/azure-ad-delta-sync-bundle
More information about itk-dev/azure-ad-delta-sync-bundle
Files in itk-dev/azure-ad-delta-sync-bundle
Package azure-ad-delta-sync-bundle
Short Description Symfony bundle that enables the Azure AD Delta Sync flow
License MIT
Informations about the package azure-ad-delta-sync-bundle
Azure AD Delta Sync Symfony Bundle
Symfony bundle for Azure AD Delta Sync flow.
Installation
To install run
Usage
Before being able to use the bundle, you must have
your own User
entity, UserRepository
and database setup.
You will need to configure variables for
Microsoft groups, the above mentioned User
entity
and cache pool:
Variable configuration
In /config/packages
you need the following itkdev_azure_ad_delta_sync.yaml
file:
Here the azure_ad_user_property
should be a property on the
Azure AD user that is equivalent to the system_user_property
,
as this is how we compare system users with Microsoft group users.
For this reason the comparing property must also be unique.
Listening to DeleteUserEvent
The bundle dispatches a DeleteUserEvent
containing
a list of user properties (system_user_property
) for potential removal.
The using system should implement logic to ensure
these users are not deleted unintentionally.
Therefore, the using system will need to implement an EventListener
or EventSubscriber that listens to the DeleteUserEvent
.
Example EventSubscriber
Starting the flow
To start the flow the using system execute the follow CLI command:
It is up to the using system to decide how and when to run this command.
Development Setup
A docker-compose.yml
file with a PHP 7.4 image is included in this project.
To install the dependencies you can run
Unit Testing
We use PHPUnit for unit testing. To run the tests:
The test suite uses Mocks for generation of test doubles.
Check Coding Standard
-
PHP files (PHP_CodeSniffer)
- Markdown files (markdownlint standard rules)
GitHub Actions
All code checks mentioned above are automatically run by GitHub Actions when a pull request is created.
To run the actions locally, install act and run
Use act -P ubuntu-latest=shivammathur/node:focal pull_request --list
to see
individual workflow jobs that can be run, e.g.
Apply Coding Standards
-
PHP files (PHP_CodeSniffer)
- Markdown files (markdownlint standard rules)
Versioning
We use SemVer for versioning. For the versions available, see the tags on this repository.
License
This project is licensed under the MIT License - see the LICENSE.md file for details
All versions of azure-ad-delta-sync-bundle with dependencies
symfony/framework-bundle Version ^5.2
symfony/yaml Version ^5.2
symfony/console Version ^5.2
doctrine/orm Version ^2.9
symfony/property-access Version ^5.2
itk-dev/azure-ad-delta-sync Version ^1.0
symfony/lock Version ^5.2