4

サイトの開発で Facebook 認証にdjango-allauthを使用しており、それに応じて設定しています。

FacebookのFacebookアプリ設定内:

Namespace: test_login
App Domains: blank
Site URL: http://127.0.0.1:8000/
Canvas URL: http://127.0.0.1:8000/
Secure Canvas URL: https://127.0.0.1:8000/

Django admin で、新しいソーシャル アプリを作成しました。

Provider: Facebook
name: test_login
client_id: xxx
Secret: xxx
Sites: http://127.0.0.1:8000/

ご覧のとおり、http://127.0.0.1:8000/の代わりに新しいサイトを追加しましたexample.com

settings.py の SITE_ID は正しいものです。

したがって、すべてが機能するはずですが、そうではありません。クリックしてFacebookからログインすると、

Given URL is not allowed by the Application configuration.: 
One or more of the given URLs is not allowed by the App's settings. 
It must match the Website URL or Canvas URL, or the domain must be a 
subdomain of one of the App's domains.

私は何が欠けていますか?構成されていないものは何ですか? 私が理解できる限り127.0.0.1:8000、テストに使用できるはずです。

4

2 に答える 2