Skip to content

Commit

Permalink
maint, mediawiki: specify user_auth_state_key
Browse files Browse the repository at this point in the history
  • Loading branch information
consideRatio committed Jun 26, 2023
1 parent 84e1aac commit 032d5d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion oauthenticator/mediawiki.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ class MWOAuthenticator(OAuthenticator):
login_service = 'MediaWiki'
login_handler = MWLoginHandler
callback_handler = MWCallbackHandler
user_auth_state_key = "MEDIAWIKI_USER_IDENTITY"

mw_index_url = Unicode(
os.environ.get('MW_INDEX_URL', 'https://meta.wikimedia.org/w/index.php'),
Expand Down Expand Up @@ -144,5 +145,5 @@ def build_auth_state_dict(self, token_info, user_info):
return {
'ACCESS_TOKEN_KEY': token_info["access_token"].key,
'ACCESS_TOKEN_SECRET': token_info["access_token"].secret,
'MEDIAWIKI_USER_IDENTITY': user_info,
self.user_auth_state_key: user_info,
}

0 comments on commit 032d5d2

Please sign in to comment.