# GameCenter request signature for external integration.

**URL:** <https://forums.solar2d.com/t/gamecenter-request-signature-for-external-integration/346743>\
**Category:** Game Networking\
**Created:** [February 19, 2018, 5:02pm UTC](https://forums.solar2d.com/t/gamecenter-request-signature-for-external-integration/346743 "2018-02-19T17:02:08Z")\
**Posts on this page:** 11\
**Page:** 2

<div class="post-metadata">

**Author:** ![vlads](https://forums.solar2d.com/user_avatar/forums.solar2d.com/vlads/32/29_2.png) [@vlads](https://forums.solar2d.com/u/vlads)\
**Post date:** [February 20, 2018, 2:04am UTC](https://forums.solar2d.com/t/gamecenter-request-signature-for-external-integration/346743/21 "2018-02-20T02:04:39Z")

</div>

I’m confused. Do you need this for Lua or Native plugin? If you need it for native plugin, you can easily call it yourself, without being inside game kit/game center plugin like this:

```
[[GKLocalPlayer localPlayer] generateIdentityVerificationSignatureWithCompletionHandler:^(NSURL\* publicKeyUrl, NSData\* signature, NSData\* salt, uint64\_t timestamp, NSError\* error) { // Your code here }];

```

If from Lua, how do you plan to use it?

---

<div class="post-metadata">

**Author:** ![agramonte](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/a/bc79bd/32.png) [@agramonte](https://forums.solar2d.com/u/agramonte)\
**Post date:** [February 20, 2018, 3:06am UTC](https://forums.solar2d.com/t/gamecenter-request-signature-for-external-integration/346743/22 "2018-02-20T03:06:09Z")

</div>

@vlads From Lua. I can use those values for the call to gamespark to authenticate with GameCenter (like I currently do with GooglePlay). But technically most single sign-on integrations should work the same way. Now I am curious how the other backends that are in the marketplace do it.

In Gamesparks it would look like this on the lua side:

```
local requestBuilder = gs.getRequestBuilder() local gameCenterConnectRequest = requestBuilder.createGameCenterConnectRequest() gameCenterConnectRequest:setPublicKeyUrl(\<publicKeyURL\>) gameCenterConnectRequest:setSalt(\<salt\>) gameCenterConnectRequest:setSignature(\<signature\>) gameCenterConnectRequest:send(function(response) --Response end)
```

---

<div class="post-metadata">

**Author:** ![maximo97](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/m/edb3f5/32.png) [@maximo97](https://forums.solar2d.com/u/maximo97)\
**Post date:** [February 21, 2018, 11:20am UTC](https://forums.solar2d.com/t/gamecenter-request-signature-for-external-integration/346743/23 "2018-02-21T11:20:55Z")

</div>

Hi guys, are there any news?

---

<div class="post-metadata">

**Author:** ![rob](https://forums.solar2d.com/user_avatar/forums.solar2d.com/rob/32/4_2.png) [@rob](https://forums.solar2d.com/u/rob)\
**Post date:** [February 21, 2018, 1:38pm UTC](https://forums.solar2d.com/t/gamecenter-request-signature-for-external-integration/346743/24 "2018-02-21T13:38:14Z")

</div>

Engineering is aware of the request, but it’s not something we have on our immediate list to address.&nbsp; It’s a much bigger project than you might imagine for us to implement in the right way. I was hoping it would be low hanging fruit, but it’s not.&nbsp;

This is one of those features that we probably should track, so we invite you to go to [http://feedback.coronalabs.com](http://feedback.coronalabs.com) and create a new feature request for this and get the community to vote on it.

Note: We got rid of voting limits. You can now vote for an unlimited number of items.

Rob

---

<div class="post-metadata">

**Author:** ![maximo97](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/m/edb3f5/32.png) [@maximo97](https://forums.solar2d.com/u/maximo97)\
**Post date:** [February 23, 2018, 9:29am UTC](https://forums.solar2d.com/t/gamecenter-request-signature-for-external-integration/346743/25 "2018-02-23T09:29:40Z")

</div>

@Rob Miracle

So at the moment corona can’t in any way log in with gameCenter?

I ask because here you told me it was possible:&nbsp;[https://forums.coronalabs.com/topic/71498-save-sandbox-on-googleplay-and-gamecenter/](https://forums.coronalabs.com/topic/71498-save-sandbox-on-googleplay-and-gamecenter/)

I would therefore like to know if there is a way outside ofgenerateIdentityVerificationSignatureWithCompletionHandler.&nbsp;

I apologize if I can seem insistent. Only I really need it …

---

<div class="post-metadata">

**Author:** ![vlads](https://forums.solar2d.com/user_avatar/forums.solar2d.com/vlads/32/29_2.png) [@vlads](https://forums.solar2d.com/u/vlads)\
**Post date:** [February 23, 2018, 11:32am UTC](https://forums.solar2d.com/t/gamecenter-request-signature-for-external-integration/346743/26 "2018-02-23T11:32:47Z")

</div>

Usually just&nbsp;playerID is used for that. generateIdentityVerificationSignatureWithCompletionHandler is used to do server verification with encryption and stuff. Do you need this method specifically?

It is common to fetch save files just using playerID without verifying identity with certificate.

---

<div class="post-metadata">

**Author:** ![maximo97](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/m/edb3f5/32.png) [@maximo97](https://forums.solar2d.com/u/maximo97)\
**Post date:** [February 23, 2018, 11:42am UTC](https://forums.solar2d.com/t/gamecenter-request-signature-for-external-integration/346743/27 "2018-02-23T11:42:33Z")

</div>

Thanks to the immediate response!

I’m new to this type of operation so I thought it was mandatory.

I then rehearse and let you know.

---

<div class="post-metadata">

**Author:** ![agramonte](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/a/bc79bd/32.png) [@agramonte](https://forums.solar2d.com/u/agramonte)\
**Post date:** [March 10, 2018, 12:34am UTC](https://forums.solar2d.com/t/gamecenter-request-signature-for-external-integration/346743/28 "2018-03-10T00:34:33Z")

</div>

Anybody who is still interested and currently using native builds, I created a plugin to get this information. It can be found here:

[https://github.com/agramonte/idVerifySig-corona-plugin](https://github.com/agramonte/idVerifySig-corona-plugin)

---

<div class="post-metadata">

**Author:** ![rob](https://forums.solar2d.com/user_avatar/forums.solar2d.com/rob/32/4_2.png) [@rob](https://forums.solar2d.com/u/rob)\
**Post date:** [March 10, 2018, 12:45am UTC](https://forums.solar2d.com/t/gamecenter-request-signature-for-external-integration/346743/29 "2018-03-10T00:45:57Z")

</div>

Have you considered submitting this to the Marketplace?

Rob

---

<div class="post-metadata">

**Author:** ![agramonte](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/a/bc79bd/32.png) [@agramonte](https://forums.solar2d.com/u/agramonte)\
**Post date:** [March 10, 2018, 1:56am UTC](https://forums.solar2d.com/t/gamecenter-request-signature-for-external-integration/346743/30 "2018-03-10T01:56:47Z")

</div>

It would be free and sure would love to. What do I need to submit it? You know me I hate doing native builds so it would help me out also. I have to create the Lua&nbsp;stubs so it doesn’t generate an error on an sdk&nbsp;build, but that should be up tonight.

---

<div class="post-metadata">

**Author:** ![agramonte](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/a/bc79bd/32.png) [@agramonte](https://forums.solar2d.com/u/agramonte)\
**Post date:** [March 14, 2018, 10:01pm UTC](https://forums.solar2d.com/t/gamecenter-request-signature-for-external-integration/346743/31 "2018-03-14T22:01:50Z")

</div>

The plugin is now available for those who might need it. Thank you corona for helping me put it up on the MarketPlace.

[https://marketplace.coronalabs.com/plugin/verification-signature](https://marketplace.coronalabs.com/plugin/verification-signature)

[Previous page](https://forums.solar2d.com/t/gamecenter-request-signature-for-external-integration/346743.md?page=1)
