Ability to perform sign up and post by API

Avatar
  • updated
  • Answered

I'm trying to create a bug reporter in our game for users to submit bugs with. We want them to simply provide an email address and name and be able to submit their bug no questions asked. I had hoped the UE API would allow this, but it seems I must expose my own API token which is dangerous to do?

Pinned replies
Avatar
Vladimir Mullagaliyev co-founder
  • Answer
  • Answered

Hello Scott,

Definitely, you should not expose your API token! What you should do in this case is make a post of data to your page, then call API from your server side with received parameters.

Also, if your users are authenticated in your App already, you could post the API call with user's SSO token (additionally) and have it registered in UE automatically.

Avatar
Vladimir Mullagaliyev co-founder
  • Answer
  • Answered

Hello Scott,

Definitely, you should not expose your API token! What you should do in this case is make a post of data to your page, then call API from your server side with received parameters.

Also, if your users are authenticated in your App already, you could post the API call with user's SSO token (additionally) and have it registered in UE automatically.

Avatar
Scott Richmond

Hi Vladimir,

We don't have a server to proxy the API calls and hide the token. I had spent some time trying to make a Cloudflare Worker proxy an API call using my SSO token + a new user email but I couldn't figure out the crypto stuff even with your github examples. Do you think you could have one of your team quickly spin up a Cloudflare Worker to create an example code that proxies an API call to create a new topic with a new user?

That would be immensely useful for a lot of us as Cloudflare Workers are cheap (or free!) and perfect for this.

Avatar
-1
Vladimir Mullagaliyev co-founder

The problem was resolved via Helpdesk. 


We will post an example for CloudFlare Worker realization here. Please replace HelpdeskId and ApiKey.

cloudflare_worker_new_ticket_example.txt

Here is an example how we call the request.

Image 19581