https://github.com/verbb/example-formie-oauth-integration
https://github.com/verbb/example-formie-oauth-integration
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/verbb/example-formie-oauth-integration
- Owner: verbb
- Created: 2024-03-29T02:15:52.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-29T10:34:37.000Z (about 2 years ago)
- Last Synced: 2024-05-21T11:35:46.902Z (about 2 years ago)
- Language: PHP
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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