An open API service indexing awesome lists of open source software.

https://github.com/verbb/example-formie-oauth-integration


https://github.com/verbb/example-formie-oauth-integration

Last synced: 12 months ago
JSON representation

Awesome Lists containing this project

README

          

# Example Formie OAuth Integration
This is an example [Craft CMS](https://www.craftcms.com/) module for [Formie](https://github.com/verbb/formie) that shows how using the [Auth module](https://github.com/verbb/auth) can be used to connect with OAuth-based providers.

> [!NOTE]
> New to modules? Read our [blog post](https://verbb.io/blog/everything-you-need-to-know-about-modules) on getting started.

The following guide uses [Zoho CRM](https://www.zoho.com/en-au/crm/) to provider a real-world and working example.

We cover two approaches.

## Using a `GenericProvider`
The simplest approach is to use the `verbb\auth\providers\Generic` class for your integration. This takes care of many provider use-cases, where you just want to provide some endpoint URLs and maybe some scopes.

```php