Open CSystem77 opened 4 years ago
Nice!
https://github.com/CSystem77/Account-PSN-ID
Credit : Script : thestr4ng3r & grill2010 Version Web : CSystem
Theme : jekyll theme
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.
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.
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.
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.
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.
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.
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.
i get a error when getting token
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