FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Commit a8ef6676 authored by Monty Dawson's avatar Monty Dawson :coffee:
Browse files

Get scopes and scope description from settings rather than specific module

parent 699f4333
No related branches found
Tags 0.9-ch108
1 merge request!1Initial implementation
from api.scopes import SCOPES_TO_DESCRIPTION
from django.conf import settings
API_SERVICE_CLIENT_CREDENTIALS = 'API Service OAuth2 Client Credentials'
API_SERVICE_ACCESS_CODE = 'API Service OAuth2 Access Code'
SCOPES_TO_DESCRIPTION = getattr(settings, 'API_GATEWAY_SCOPES_TO_DESCRIPTION', {})
SECURITY_DEFINITIONS = {
API_SERVICE_CLIENT_CREDENTIALS: {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment