Skip to content

Commit

Permalink
Update wlcg.py
Browse files Browse the repository at this point in the history
Adding email scope in default scope
  • Loading branch information
maikenp authored Sep 4, 2023
1 parent ab36326 commit 4adadbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion social_core/backends/wlcg.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class WLCGOAuth2(BaseOAuth2):
ACCESS_TOKEN_URL = "https://wlcg.cloud.cnaf.infn.it/token"
REFRESH_TOKEN_URL = "https://wlcg.cloud.cnaf.infn.it/token"
ACCESS_TOKEN_METHOD = "POST"
DEFAULT_SCOPE = ["openid", "profile", "wlcg", "offline_access"]
DEFAULT_SCOPE = ["openid", "email", "profile", "wlcg", "offline_access"]
REDIRECT_STATE = False

Check warning on line 18 in social_core/backends/wlcg.py

View check run for this annotation

Codecov / codecov/patch

social_core/backends/wlcg.py#L11-L18

Added lines #L11 - L18 were not covered by tests

def get_user_details(self, response):

Check warning on line 20 in social_core/backends/wlcg.py

View check run for this annotation

Codecov / codecov/patch

social_core/backends/wlcg.py#L20

Added line #L20 was not covered by tests
Expand Down

0 comments on commit 4adadbf

Please sign in to comment.