0

When an application is created and issued a client_id and client_secret using django-oauth-tookit where does it store the client_id and client_secret? How can I manually retrieve/create them?

Tamdim
  • 972
  • 2
  • 12
  • 29
  • client_id and client_secret are saved in `oauth2_provider_application` table in sqlite database. – Usoof Mar 01 '21 at 08:54

1 Answers1

0

In your auth provider backend, you can access them using something like:

from oauth2_provider.models import Application

my_app = Application.objects.get(...)
my_app.client_id
my_app.client_secret

Alternatively, you can also navigate to the corresponding page in the Django admin:

Example Django admin page for oauth toolkit application.

WaterGenie
  • 119
  • 1
  • 9