From 553a5cd62d8c84d7b21606085928ed9e7088719a Mon Sep 17 00:00:00 2001 From: lpm0073 Date: Tue, 4 Oct 2022 12:00:00 -0500 Subject: [PATCH] DEFAULT_SCOPE is a list --- wp_oauth_backend/wp_oauth.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/wp_oauth_backend/wp_oauth.py b/wp_oauth_backend/wp_oauth.py index 2af0d83..0e9919a 100644 --- a/wp_oauth_backend/wp_oauth.py +++ b/wp_oauth_backend/wp_oauth.py @@ -50,7 +50,11 @@ class StepwiseMathWPOAuth2(BaseOAuth2): # 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 # 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 it’s # not the default GET request.