knpuniversity / oauth2-client-bundle

Easily talk to an OAuth2 server for social functionality in Symfony
https://symfonycasts.com
MIT License
787 stars 145 forks source link

Redirect url none https #364

Open Screek1 opened 2 years ago

Screek1 commented 2 years ago

Hello, problem with FB Oauth.

Error fetching OAuth credentials: "OAuthException: Can't Load URL: The domain of this URL isn't included in the app's domains. To be able to load this URL, add all domains and subdomains of your app to the App Domains field in your app settings.".

Server DigitalOcean App Symfony 5 We have load balancer image

Rules for load balancer image

How I can use Oauth and Load Balancer, I dont understand what the problem is

micronax commented 2 years ago

Try to set the proper trusted proxy configuration in your application: https://symfony.com/doc/current/deployment/proxies.html

Relates to https://github.com/knpuniversity/oauth2-client-bundle/issues/315