-
-
Notifications
You must be signed in to change notification settings - Fork 25
Not authenticated when getting profile #68
Comments
Same here. |
Same here |
2 similar comments
Same here |
Same here |
It would appear that the login parts are actually failing (the |
Has anyone found a solution to this bug? |
Hi @EthanC I just wanted to ask you if you think you will be able to work on this, I don't know if you are still actively working on this library and if we can expect a solution in the next days. |
@EthanC any update? |
The equivalent NodeJS package has resolved the same issue by adding cookie support to the login: Lierrmm/Node-CallOfDuty#69 |
Just checked through the fix for Node-CallOfDuty. Their fix involves using puppeteer to start a web browser and perform a login via the The project has a discord server, and the maintainer posted a WIP logon flow for the dev branch, which invloves just using the page in puppeteer to log in: There was also a brief conversation the summarised the issue: Conversation
So, from the work on the Node projects, it seems that:
@ionelmc You were discussing the login request getting stuck in the Node-CallOfDuty discord, did you get any further? |
|
@alxwrd I was talking about the tarpit behavior they have on the login (that's why they use puppeteer - there's some js in the login page that disables the tarpit). Anyway, the solution is to just skip the login completely and just use the session cookies. It's a hassle but it works as long as you don't let the session expire. I don't know if there's any ip pinning on the session. |
Release v1.3.0 allows authentication using an Activision Single Sign-On (SSO) cookie value. Simply provide the Authorization using an email and password is not publicly available at this time. The aforementioned SSO method is to be used until further notice. |
Does anyone know how to get the SSO cookie? |
Summary
When making a request to get a players profile, the request is rejected with
Not permitted: not authenticated
.If I make a request to
/api/papi-client/stats/cod/v1/title/mw/platform/uno/gamer/<username>/profile/type/wz
in the browser, the request returns successfully.The profiles I'm attempting to fetch are my own, and people on my friends list.
Potentially related: #43. I've raised this because it's a different endpoint. If it's the same issue, this can be closed.
Reproduction Steps
Actual Results
Checklist
System Information
Version: 1.2.2
Python: 3.9
The text was updated successfully, but these errors were encountered: