edx-oauth2-wordpress-backend/wp_oauth_backend/stepwise_oauth.py

18 lines
726 B
Python
Raw Normal View History

2022-10-06 23:53:54 +03:00
from .wp_oauth import WPOpenEdxOAuth2
2022-10-06 22:22:42 +03:00
class StepwiseMathWPOAuth2(WPOpenEdxOAuth2):
# This defines the backend name and identifies it during the auth process.
# The name is used in the URLs /login/<backend name> and /complete/<backend name>.
#
# This is the string value that will appear in the LMS Django Admin
# Third Party Authentication / Provider Configuration (OAuth)
# setup page drop-down box titled, "Backend name:", just above
# the "Client ID:" and "Client Secret:" fields.
2022-10-07 00:07:38 +03:00
name = "stepwisemath-oauth"
2022-10-06 22:22:42 +03:00
# note: no slash at the end of the base url. Python Social Auth
# might clean this up for you, but i'm not 100% certain of that.
BASE_URL = "https://stepwisemath.ai"