Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions content/collections/pages/oauth.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,12 @@ To create your own OAuth provider, you should make your own SocialiteProvider-re

Follow the [third party installation steps](#third-party-providers), but skip the Composer bits. You can just keep the classes somewhere in your project.

If you are using a custom provider and trust your own provider that the e-mails coming in are verified, you need to add `trusted_providers` with array of your own provider's handle:

```php
`trusted_providers => ['my-custom-provider']
```

## Customizing user data

After authenticating with the provider, Statamic will try to retrieve the corresponding user, or create one if it doesn't exist. You may customize how it's handled by adding a callback to your `AppServiceProvider`.
Expand Down