Tamdim
Tamdim

Reputation: 1192

Where does Django-oauth-toolkit store the client_id and client_secret?

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?

Upvotes: 0

Views: 1126

Answers (1)

WaterGenie
WaterGenie

Reputation: 139

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.

Upvotes: 0

Related Questions