Self hosted with playfab, getting this error (Operation failed: OperationResponse 230: ReturnCode: )
Options
Okhla
✭
Self hosted photon server with playfab, after successfully getting ticket session i am getting this error --
Operation failed: OperationResponse 230: ReturnCode: 32755 (Custom authentication service error: Error). Parameters: {} Server: MasterServer
UnityEngine.Debug:LogError(Object)
Operation failed: OperationResponse 230: ReturnCode: 32755 (Custom authentication service error: Error). Parameters: {} Server: MasterServer
UnityEngine.Debug:LogError(Object)
0
Comments
-
My photon is self hosted but playfab is generating session token of photon cloud, will it work? If not then what will be its alternative.0
-
Here is the code:-
GetPhotonAuthenticationTokenRequest request = new GetPhotonAuthenticationTokenRequest();
PhotonNetwork.AuthValues = new AuthenticationValues();
PhotonNetwork.AuthValues.AuthType = CustomAuthenticationType.Custom;
PhotonNetwork.AuthValues.AddAuthParameter("username", this.PlayFabId);
PhotonNetwork.AuthValues.UserId = this.PlayFabId;
PhotonNetwork.ConnectUsingSettings("1.4");0 -
Hi @Okhla,
PlayFab integration is meant to be used with Photon Cloud only out-of-the-box.
If you want to make it work with self-hosted Photon Server you need to:
1. Do everything shown here and here. Btw your client code snippet is missing some pieces! Please follow the links carefully.
2. Configure custom authentication for the master application ("{PhotonServerSDK_Path}/deploy/Loadbalancing/Master/bin/Photon.LoadBalancing.dll.config") as follows:<AuthSettings Enabled="true" ClientAuthenticationAllowAnonymous="false"> <AuthProviders> <AuthProvider Name="PlayFab" AuthenticationType="0" AuthUrl="https://{PlayFabTitleId}.playfabapi.com/photon/authenticate" RejectIfUnavailable = "true" /> <AuthSettings>
3. [if you are going to use webhooks] Set the Photon AppId manually in the LoadBalancing code, I think by default we set the HardwareID as AppId. @chvetsov can confirm and show you where to do this.
4. [if you are going to use webhooks] Configure webhooks for the game server application ("{PhotonServerSDK_Path}/deploy/Loadbalancing/GameServer/bin/Photon.LoadBalancing.dll.config") as follows (for reference):<PluginSettings Enabled="true"> <Plugins> <Plugin Name="WebHooksPlugin1.2" Version="" AssemblyName="PhotonHive.WebhooksPlugin1.2.dll" Type="Photon.Hive.Plugin.WebHooks.PluginFactory" BaseUrl="https://{PlayFabTitleId}.playfablogic.com/webhook/1/prod/{PhotonSecretKey}" PathCreate="RoomCreated" PathClose="RoomClosed" PathJoin="RoomJoined" PathEvent="RoomEventRaised" PathProperties="RoomPropertyUpdated" PathLeave="RoomLeft" IsPersistent="true" HasErrorInfo="false" AsyncJoin="true"/> </Plugins> </PluginSettings>
0 -
thanks0