mgp25 / psn-api

PlayStation Network API in python
131 stars 26 forks source link

captcha token missing #2

Closed BlazeBoss17 closed 7 years ago

BlazeBoss17 commented 7 years ago

This week I get the following response back from GrabNPSSO:

u'error_code': 4097, u'error_description': u'Invalid token', u'parameters': [u'captchatokenmissing'], u'docs': u'https://auth.api.sonyentertainmentnetwork.com/docs/', u'error': u'invalid_token'

Has been working correctly for the last 6 months.

mgp25 commented 7 years ago

Hello @BlazeBoss17 ,

have you tried login in in PlayStation Network website, and once logged, using this script again?

Regards

mgp25 commented 7 years ago

@BlazeBoss17 what you can do is, logging in via PSN website, extract the authentication bearer from the request, and use it in your script without calling Auth():

#auth = Auth(user, pw)
#tokens = auth.get_tokens()

tokens = {
    "oauth": 'HERE BEARER AUTH',
    "refresh": 'HERE BEARER AUTH', # this is not required tho
    "npsso": None
}

Regards