Sign In Register

How can we help you today?

Start a new topic

Support not-authenticated LogEvent requests

Some scenarios require extending the "not-authenticated" API.

For example, supposing users have e-mails assigned on GameSparks, players might want to request a password reset e-mail including a code which can then be used to set a new password for the associated account.

This scenario requires two custom scripts to run without having to be authenticated to some account.

However, LogEvent being limited to authenticated players, we have to extend the AuthenticationRequest (or any other authentication request) with a parameter specifying which "custom request" we want to execute (sendPasswordResetEmail, setNewPassword...).

Adding a new option to LogEvents ("Authentication Required", defaulting to true) would allow us to develop a cleaner API since these two scenarios would each be in their own event, with parameter validation (e.g. email, secret, newPassword) based on the event configuration rather than scriptData.

6 people like this idea


I'd like to be able to read game configuration settings before the user can even register.

I would like to see this as well.

In most scenarios like this I'm forced to use a callback URL and implement as an AJAX callback. If you decide to take this route, just know that Cloud Code SparkRequests objects will require .ExecuteAs() to set the user. Also, user-based configuration segmenting won't be applied.


Login to post a comment