dhleong / playactor

play around with your playstation devices
146 stars 12 forks source link

Add OAuth + RemotePlay-based auth flow for PS5 #16

Closed dhleong closed 3 years ago

dhleong commented 3 years ago

This PR will enable the wake command for PS5 devices!

Nitty gritty:

When attempting to wake a device, playground will automatically determine how best to authenticate based on the device type (IE: PS4 or PS5) and will either use the old app-based auth method for PS4 or this new method for PS5. Credentials will automatically be saved as normal to enable future command use.

Currently, we only support the wake command with PS5 devices. Future work may enable us to use more complex commands, but not there yet. To make this work, I built on the work from the Chiaki project, which fully supports RemotePlay.

How To:

  1. Make sure your PS5 is on
  2. Run playground login - you should be prompted to open a browser window and login to PSN
  3. Copy the URL you end up at, and paste it back into playground (it should explain this)
  4. If all goes well, you will be prompted to open the "Link Device" page on your PS5 and enter the PIN shown
  5. playground is now registered! Use playground wake as usual.