For JS SDK, how can I INITIALIZE with php (to hide the key), then continue with JS?
D
Dylan Hunt
started a topic
over 6 years ago
I'm realizing there's no need for an entire PHP SDK (it would be nice, of course), but if there was a way to simply initialize with PHP to hide your secret key, then the rest of the SDK would be secure - without this, the JS SDK is super unsecure.
I've been looking into Xajax , to implement this, but because this is a socket instead of a normal request, I'm not quite sure how to handle this.
Any thoughts?
Instead of initializing, I could returnNonce via php function as well.
I'm not quite sure how to do this, although I'm currently looking into it and it seems possible.
Dylan Hunt
I'm realizing there's no need for an entire PHP SDK (it would be nice, of course), but if there was a way to simply initialize with PHP to hide your secret key, then the rest of the SDK would be secure - without this, the JS SDK is super unsecure.
I've been looking into Xajax , to implement this, but because this is a socket instead of a normal request, I'm not quite sure how to handle this.
Any thoughts?
Instead of initializing, I could returnNonce via php function as well.
I'm not quite sure how to do this, although I'm currently looking into it and it seems possible.
There is an alternative solution described here which uses nodeJS to store the secret and key.
https://docs.gamesparks.com/tutorials/third-party-integrations/node-js-secret.html
- Oldest First
- Popular
- Newest First
Sorted by Oldest FirstCustomer Support
This was discussed via a ticket with Dylan.
Thanks,
Liam
Christopher Bonnell
Customer Support
There is an alternative solution described here which uses nodeJS to store the secret and key.
https://docs.gamesparks.com/tutorials/third-party-integrations/node-js-secret.html
-
Documentation Notes
-
Design issues with user events
-
Using NoSQL
-
Runtime Collections vs Metadata Collections
-
Anonymous authentication from browser app
-
Modules
-
Movement With Unity
-
Problem with url parameters for downloadables
-
Querying NoSql GameSparks database
-
Challenge accesType
See all 2487 topics