The Photon Forum
is Closed Permanently.

After many dedicated years of service, we have made the decision to retire our Forum and switch to read-only: we´ve saved the best to last! Your search result can be found below. Plus, we offer support via these channels:

Try Our
Documentation

Please check if you can find an answer in our extensive documentation on PUN.

Join Us
on Discord

Meet and talk to our staff and the entire Photon-Community via Discord.

Read More on
Stack Overflow

Find more information on Stack Overflow (for Circle members only).

Write Us
an E-Mail

Feel free to send your question directly to our developers.

Adding login and account functionality

Reimus
2015-01-21 23:38:41

Hi, what would be good ways to include login and account functionality in my game. I want allow people to register and account, login with it, and keep their user data. I know PUN doesn't offer that, but how else can I do it. Would Photon Server work? I have a virtual private server that I could use to store a database.

Would anyone be able to give me any suggestions? Thank you.

Comments

dontonka
2015-01-22 13:36:19

Hello Reimus.

I'm basically doing that, as many others :), I use Photon Cloud and use a another server (the same that host my game website) for the rest:

  • authentication (Photon allow to use custom authentication, works great, i recommend you to buy an SSL certificate on your server)
  • some basics analytic
  • friends
  • keeping players information

The back-end technology I'm using is PHP with MySQL.

Regards, Don T.

FamerJoe
2015-01-22 16:47:24

I use Kii Cloud for user accounts, but as Don said, you could also roll your own. I haven't used the custom auth with KiiCloud though, if it's even possible. I haven't read up on it too much. But with KiiCloud, and their various APIs, I can have users make accounts for the game on the website without intervention from me.

Reimus
2015-01-25 02:03:38

Thank you for the advice. I found a service that works with Unity called Parse and I am working on integrating it into my game.

Tobias
2015-01-30 15:12:03

We think PlayFab is a great service and they are integrating Photon, too.

FamerJoe
2015-02-01 05:05:54

I would have used Playfab, but they don't have the user management capabilities that Kii has.

Skar
2016-03-20 11:30:00

Is it possible to have Playfab authenticate a non-integrated Photon AppID? Seeing as I already have a realtime AppID from Photon with 100CCU, it would be nice to be able to use that.

Dev
2016-03-21 23:44:08

Im using a seperate server to run my login and register systems (i find it the easiest). I find photon's custom authentication service is very poorly documented and is hard to use.

Dev
2016-03-21 23:44:47

PHP/MYSQL is the way to go in my opinion. Simply send a www request from unity to your server and accept the response in unity :)

JohnTube
2016-03-22 02:32:42

Hi @Dev,

"I find photon's custom authentication service is very poorly documented and is hard to use."

Can you please state why you think so?

Do you talk about this documentation page : https://doc.photonengine.com/en/realtime/current/reference/custom-authentication?

Back to top