Commit 65604f29 by Clinton Blackburn

WIP: Good Grid OAuth 2.0 backend

DO NOT MERGE!!!

This will ultimately live in LMS or a separate package.
parent fcb975dd
from social_core.backends.oauth import BaseOAuth2
class GoodGridOAuth2(BaseOAuth2):
name = 'goodgrid'
AUTHORIZATION_URL = 'https://findgood.goodgrid.com/AuthorizationServer/OAuth/Authorize'
DEFAULT_SCOPE = ['personal']
# TODO Work with Good Grid to support the code response type.
RESPONSE_TYPE = 'token'
REDIRECT_STATE = False
STATE_PARAMETER = False
......@@ -231,6 +231,7 @@ AUTHENTICATION_BACKENDS = (
'auth_backends.backends.EdXOpenIdConnect',
'django.contrib.auth.backends.ModelBackend',
'guardian.backends.ObjectPermissionBackend',
'course_discovery.apps.core.backends.GoodGridOAuth2',
)
# Guardian settings
......
......@@ -33,6 +33,8 @@ PARLER_LANGUAGES = {
}
}
SOCIAL_AUTH_GOODGRID_KEY = 'XXXX'
#####################################################################
# Lastly, see if the developer has any local overrides.
if os.path.isfile(join(dirname(abspath(__file__)), 'private.py')):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment