Hello,
I'm trying to integrate Google Authentication with Playfab in my Unreal desktop game. I will describe the approaches I consider and the problems I found but please let me know if there is a guide somewhere or someone is already doing this in another way.
First approach: Server Auth Code. I couldn't find information about performing this operation outside of android. I'm not sure if we are talking about a normal code with offline access (the google docs are not so clear to me) but if so I don't know how to configure the redirect url and such, since the code will be exchanged in playfab servers.
Second approach: client side authentication. This was my plan: start a HTTP server in my game ((https://docs.unrealengine.com/en-US/API/Runtime/HttpServer/index.html), launch a browser to the google authorization endpoint and set the HTTP server listen address as the redirect uri. Get back an access token and call LoginWithGoogle with the access token (I cannot do it with the sdk but I can make the request directly). I want to confirm this is an acceptable solution, and I also have a problem with this approach (this is more like unreal question but I'm going to mention here to have the full picture): It seems I have no way to recover the piece of the url that starts with the # sign, which is how oauth2 builds the redirect url with the access token.
Thanks!
,Hello,
I'm trying to integrate Google Authentication with Playfab in my Unreal desktop game. I will describe the approaches I consider and the problems I found but please let me know if there is a guide somewhere or someone is already doing this in another way.
First approach: Server Auth Code. I couldn't find information about performing this operation outside of android. I'm not sure if we are talking about a normal code with offline access (the google docs are not so clear to me) but if so I don't know how to configure the redirect url and such, since the code will be exchanged in playfab servers.
Second approach: client side authentication. This was my plan: start a HTTP server in my game ((https://docs.unrealengine.com/en-US/API/Runtime/HttpServer/index.html), launch a browser to the google authorization endpoint and set the HTTP server listen address as the redirect uri. Get back an access token and call LoginWithGoogle with the access token (I cannot do it with the sdk but I can make the request directly). I want to confirm this is an acceptable solution, and I also have a problem with this approach (this is more like unreal question but I'm going to mention here to have the full picture): It seems I have no way to recover the piece of the url that starts with the # sign, which is how oauth2 builds the redirect url with the access token.
Thanks!