Creating a plugin#
Needs review
This page needs to be updated with up-to-date information on creating custom plugins.
Creating a Custom Plugin by Extending IntegrationBase for Custom Integrations.
To integrate the BankID module with a third-party system like a CRM, follow these steps:
- Create a Custom Module: Set up a custom module if you don't have one.
- Define the Plugin: Create a PHP file in
src/Plugin/BankID/within your module, extendingIntegrationBase. - Implement Methods:
getUser(): Get the user from the response.createUser(): Create the user from the response.
- Register the Plugin: Enable your module so Drupal registers the plugin.
- Configure the Integration: In BankID settings, select and configure your custom integration.
- Test the Integration: Ensure the plugin works with the CRM, handling authentication and data sync correctly.
This allows seamless authentication integration with external systems like CRMs.