Sample Client Authentication Services For Exit Games Photon Server
Clone or download
Latest commit 474dd6c Jun 1, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src-client/facebook-js Facebook Custom Auth Client Sample Nov 5, 2013
src added routes without "api" (MVC) Oct 27, 2015
.gitignore Facebook Custom Auth Client Sample Nov 5, 2013
LICENSE.txt ADDED: license Jun 1, 2017
README.md CHANGED: updated forum URLs Nov 10, 2016

README.md

Exit Games Photon - Custom Authentication

This repository provides sample Custom Authentication Service implementations for the Exit Games Photon Cloud SaaS.

Overview

When using the Exit Games Photon Cloud (Realtime, PUN, Voice, Chat, ...) to develop your application, you have the option of setting up custom authentication providers for your application. This way, you are able to authenticate your users against a number of authentication providers. This includes a custom authentication provider, that you can build and host yourself, so that you can do authentication against e.g. your own user database. This repository provides sample implementations of such a service.

You also want to have a look at the documentation of the feature.

Authenticate Interface

You can set up an application with a HTTP(s) endpoint as your authentication provider. The URI of this service has to be configured in your application via your dashboard. This could e.g. be "https://auth.mycoolgame.com/". The actual data used for the authentication (username, password, ...) has to be passed in by the client and will be forwarded to the authentication provider by the Photon server via HTTP GET. Have a look at the documentation for details. For your production environment you should of course only use SSL connections!

How you handle the authentication internally is totally up to you. The result has to be in Json format with the following values:

{ ResultCode: 1, Message: "optional Auth OK message" }

{ ResultCode: 2, Message: "optional Auth Failed message" }

{ ResultCode: 3, Message: "optional Parameter invalid message" }

Other Samples

You might also check out our forum and discuss with others using the feature. Topics to note:

We will add some more samples, as soon as we find some time :)