chiaki icon indicating copy to clipboard operation
chiaki copied to clipboard

Easy way to get PS4 AccountID Online

Open CSystem77 opened this issue 4 years ago • 10 comments

If you dont have Python3 :

Online : https://trinket.io/embed/python3/52183a157e?outputOnly=true&runOption=run&start=result&showInstructions=true

Code Python : https://trinket.io/embed/python3/52183a157e

PS : All Credit for thestr4ng3r & grill2010 Best Regards, CSystem

CSystem77 avatar Feb 03 '20 09:02 CSystem77

Nice!

FearlessSpiff avatar Feb 05 '20 08:02 FearlessSpiff

https://github.com/CSystem77/Account-PSN-ID

Credit : Script : thestr4ng3r & grill2010 Version Web : CSystem

Theme : jekyll theme

CSystem77 avatar Jun 17 '20 08:06 CSystem77

Very nice! But please everybody be aware that by using these online-services, you are sending your PSN Authentication Token to this website, which means you have to trust that the code running there is also exactly what is available at https://github.com/CSystem77/Account-PSN-ID and the credentials are not saved or abused. So use it at your own risk.

@CSystem77 Since you are already using php, you might want to take a look at https://github.com/Tustin/psn-php With this, I was able to determine psn ids given only the username without authenticating it. It requires an API key though.

thestr4ng3r avatar Jun 17 '20 20:06 thestr4ng3r

thank you. I would have to find a way to see the code executed and the execution link. I can give you access to my server for you to look at the code. I'm going to look at Tustin sources, Thank.

CSystem77 avatar Jun 18 '20 06:06 CSystem77

It's fine, I only want users to be aware of potential risks of what they are doing. Please also check the issue I created on your repository.

thestr4ng3r avatar Jun 18 '20 09:06 thestr4ng3r

I've also created a C# application a few months ago which is able to get the account id for every user just by the online-id (PSN user name) once you are logged in and have the authentication token. It has a nice login GUI in the application itself so no need to copy and paste URIs. It's based on https://github.com/Tustin/PlayStationSharp. I have plans to publish it on GitHub as well. Can then be ported to other languages as well.

grill2010 avatar Jun 23 '20 08:06 grill2010

I actually also implemented the whole OAuth process as a self-contained html page using only local JavaScript and it worked quite well, without having to copy anything manually too. The only problem there was that because of the CORS headers of the PSN api, all common browsers reject the API requests from my page without specific (complicated and browser-dependent) configuration so it turned out to be less convenient than the python script and thus useless.

thestr4ng3r avatar Jun 23 '20 09:06 thestr4ng3r

It would be great if the functionality to get PS4 AccountID could be added to Chiaki itself if possible. The current solution is suitable only for experienced users, not regular ones.

AsciiWolf avatar Dec 13 '20 13:12 AsciiWolf

Yes, that would be the most obvious approach. Initially, I did not add it into the applications themselves on purpose since the id-fetching is conceptually different from streaming itself in the sense that it accesses live services run by Sony as opposed to only communicating locally with the console. The PSN might change at any time, so this is could be easily broken, while streaming will always work if the console stays the same and gets no updates installed. But nowadays I think it will just be nicer for convenience to have it in Chiaki itself, especially on Android.

thestr4ng3r avatar Dec 13 '20 14:12 thestr4ng3r

i get a error when getting token

DarkIsTheNewLight avatar Dec 13 '20 20:12 DarkIsTheNewLight