Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
mitol-django-oauth-toolkit-extensions
Advanced tools
MIT Open Learning django app extensions for oauth toolkit
This is the Open Learning's extensions to django-oauth-toolkit
.
pip install mitol-django-oauth-toolkit-extensions
Add the following to settings.py
:
INSTALLED_APPS = [
...
"mitol.oauth_toolkit_extensions.apps.OAuthToolkitExtensionsApp",
]
# required for migrations
OAUTH2_PROVIDER_ACCESS_TOKEN_MODEL = 'oauth2_provider.AccessToken'
OAUTH2_PROVIDER_APPLICATION_MODEL = 'oauth2_provider.Application'
OAUTH2_PROVIDER_REFRESH_TOKEN_MODEL = 'oauth2_provider.RefreshToken'
OAUTH2_PROVIDER = {
...
# enable the custom scopes backends
"SCOPES_BACKEND_CLASS": "mitol.oauth_toolkit_extensions.backends.ApplicationAccessOrSettingsScopes",
}
After installing this app, a modified Application
django-admin interface (/admin/oauth2_provider/application/) is available that allows you to optionally create an ApplicationAccess
record. If you create this record, it will limit scope authorization to the scopes specified in that record. Otherwise the allowed scopes will be derived from settings.
FAQs
MIT Open Learning django app extensions for oauth toolkit
We found that mitol-django-oauth-toolkit-extensions 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
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.