Reputation: 1192
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
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:
Upvotes: 0