Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当一个应用程序被创建并使用 django-oauth-tookit 发出 client_id 和 client_secret 时,它在哪里存储 client_id 和 client_secret?如何手动检索/创建它们?
在您的身份验证提供程序后端,您可以使用以下方式访问它们:
from oauth2_provider.models import Application my_app = Application.objects.get(...) my_app.client_id my_app.client_secret
或者,您也可以导航到 Django 管理中的相应页面: