Skip to content

Commit

Permalink
fix(battlenet): userinfo authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
beheh authored and pennersr committed Oct 3, 2024
1 parent ecfa8c0 commit f03ff4d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions allauth/socialaccount/providers/battlenet/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,13 @@ def profile_url(self):
return self.battlenet_base_url + "/userinfo"

def complete_login(self, request, app, token, **kwargs):
params = {"access_token": token.token}
response = (
get_adapter().get_requests_session().get(self.profile_url, params=params)
get_adapter()
.get_requests_session()
.get(
self.profile_url,
headers={"authorization": "Bearer %s" % (token.token)},
)
)
data = _check_errors(response)

Expand Down

0 comments on commit f03ff4d

Please sign in to comment.