DEFAULT_SCOPE is a list

This commit is contained in:
lpm0073 2022-10-04 12:00:00 -05:00
parent 5f20d48769
commit 553a5cd62d

View File

@ -50,7 +50,11 @@ class StepwiseMathWPOAuth2(BaseOAuth2):
# Some providers give nothing about the user but some basic data like the # Some providers give nothing about the user but some basic data like the
# user Id or an email address. The default scope attribute is used to # user Id or an email address. The default scope attribute is used to
# specify a default value for the scope argument to request those extra bits. # specify a default value for the scope argument to request those extra bits.
DEFAULT_SCOPE = 'basic' #
# wp-oauth supports 4 scopes: basic, email, profile, openeid.
# we want the first three of these.
# see https://wp-oauth.com/docs/how-to/adding-supported-scopes/
DEFAULT_SCOPE = ['basic', 'profile', 'email']
# Specifying the method type required to retrieve your access token if its # Specifying the method type required to retrieve your access token if its
# not the default GET request. # not the default GET request.