From 23c211d951e8e22ccbd28fea9902123ee7beb8dd Mon Sep 17 00:00:00 2001 From: Martin Dub <49438284+martinoak@users.noreply.github.com> Date: Thu, 9 Jul 2026 16:11:25 +0200 Subject: [PATCH] Add trusted providers section to OAuth documentation Added instructions for using trusted providers with custom OAuth providers. --- content/collections/pages/oauth.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/content/collections/pages/oauth.md b/content/collections/pages/oauth.md index dc8c9a416..ead881a73 100644 --- a/content/collections/pages/oauth.md +++ b/content/collections/pages/oauth.md @@ -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`.