Has anyone successfully developed a workflow to allow for the client (LY Game) to access a protected resource via HTTP requests?
I am trying to gain authorization to a 3rd party web API which requires the user to authorize the LY game to gain access to the resource server. Typical Oauth 2 protocol would require the game client to reach out to the authorization server and receive an auth code via a browser. The code would be passed through the browser and retrieved by the client, which would then do a post request to the auth server again this time retrieving an auth token, that can then be stored and used to make requests to the resource server.
To test implement this, I first made a quick dummy client using Nodejs, which I used to initiate the authorization process. Upon receiving the auth token I manually deposited it into my LY lua script and used HTTP requests in Lua to make requests from within LY. My question is how to implement this entire process from within LY. I have not been able to successfully figure out the flow. Any advice and success stories would be very helpful.