![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
django-social-connector
Advanced tools
A Sample Django application for exchanging tokens with Instagram Basic Display API
A sample Django app for OAuth Token Exchange to support Instagram Basic Display API.
[!CAUTION] This app is not meant for production. It lacks certain security features and certain customization options which must be implemented based on the exact use case. It will only work in
DEBUG
mode, for development.
Use this app for development only and as a guide for adding your own token exchange backend endpoint.
Install from PyPi:
pip install django-social-connector
Add to INSTALLED_APPS:
# settings.py
INSTALLED_APPS = [
# ...
"social_connector",
# ...
]
INSTAGRAM_APP_ID
and INSTAGRAM_SECRET
settings:# settings.py
import os
INSTAGRAM_APP_ID = os.environ.get("INSTAGRAM_APP_ID")
INSTAGRAM_SECRET = os.environ.get("INSTAGRAM_SECRET")
Note: Your INSTAGRAM_SECRET
should be loaded and stored as a secret key. How to do that properly is outside the scope
of this guide and depends on your environment.
# urls.py
from django.urls import path
from social_connector.views import ig_token
urlpatterns = [
# ...
path('ig_token/', ig_token, name="ig_token"),
# ...
]
You can customize the path and the name as needed.
Make sure your frontend host is allowed for CORS requests in Django.
This app is for demonstration and development use only.
For production, create your own view in your own codebase.
For being Production ready, the endpoint should have at least the following additional safeguards:
Adding these features will bloat this minimal sample, especially when trying to reduce requirements. Implementation of some of these features also depend on your specific use case.
FAQs
A Sample Django application for exchanging tokens with Instagram Basic Display API
We found that django-social-connector demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.