Photon bolt custom authentication with playfab
Options
in Photon Bolt
Hi, I'm new on bolt and I would love some help
I'm trying to use the playfab as my authentication server, but I'm having some problems using the code from the doc.
Just like here (in the "Client Side" section) I'm trying to do this after calling PlayFabClientAPI.GetPhotonAuthenticationToken to get the playfab token:
The problem is with the part where I instantiate the PhotonPlatformConfig passing the AuthenticationValues. I'm getting the following error: 'PhotonPlatformConfig' does not contain a definition for 'AuthenticationValues'
I couldn't find the reference to PhotonPlatformConfig with AuthenticationValues set anywere other than on the documentation. If I'm doing it wrong, can anyone please show me the way? Thanks.
The versions I'm currently using are:
Unity: 2019.3.1f1
Photon Bolt: 1.2.11b
I'm trying to use the playfab as my authentication server, but I'm having some problems using the code from the doc.
Just like here (in the "Client Side" section) I'm trying to do this after calling PlayFabClientAPI.GetPhotonAuthenticationToken to get the playfab token:
AuthenticationValues auth = new AuthenticationValues(); auth.AuthType = CustomAuthenticationType.Custom; auth.AddAuthParameter("username", loginResult.PlayFabId); auth.AddAuthParameter("token", photonAuthResult.PhotonCustomAuthenticationToken); auth.UserId = loginResult.PlayFabId; var platform = new PhotonPlatform(new PhotonPlatformConfig() { AuthenticationValues = auth }); BoltLauncher.SetUdpPlatform(platform);
The problem is with the part where I instantiate the PhotonPlatformConfig passing the AuthenticationValues. I'm getting the following error: 'PhotonPlatformConfig' does not contain a definition for 'AuthenticationValues'
I couldn't find the reference to PhotonPlatformConfig with AuthenticationValues set anywere other than on the documentation. If I'm doing it wrong, can anyone please show me the way? Thanks.
The versions I'm currently using are:
Unity: 2019.3.1f1
Photon Bolt: 1.2.11b
0
Comments
-
Hi @danilolucasmd,
Thank you for choosing Photon!
It looks like custom authentication is not exposed yet from Bolt level?
@ramonmelo should know better.
You could also make use of the Bolt Issues Tracker directly.0 -
@danilolucasmd This is currently part of the 1.2.12 beta release. On Discord you can get access or wait for official release.0
-
Ok I'm gonna check on discord. Thanks
The next time I will use the Issue Tracker, sorry haha.0