I've been trying to solve an issue when LoginWithOpenIdConnection api. Tested in the app and in postman the error is the same: "Value cannot be null.\r\nParameter name: key". I'm using the SigninWithApple unity plugin that is working fine and the login is successful but when I try to log in with OpenID to play fab I have this error. The code I'm using is:
public void Playfablogin() { Dictionary<string, string> keys = new Dictionary<string, string>(); keys.Add("key", "Itunes App key"); //is this correct? Debug.Log("key:" + keys ["key"]); Debug.Log("Starting Apple Login."); var loginRequest = new LoginWithOpenIdConnectRequest { ConnectionId = "com.passportar.spain", CreateAccount = true, IdToken = PlayerPrefs.GetString("appleidtoken"), TitleId = "67BE", }; //var key = infoRequestParams.TitleDataKeys; //settings.Add { "key", ""} PlayFab.PlayFabClientAPI.LoginWithOpenIdConnect(loginRequest, appleLoginSucess, appleLoginError, keys["key"]); }
The error from postman is the following:
{ "code": 403, "status": "Forbidden", "error": "NotAuthorized", "errorCode": 1089, "errorMessage": "Value cannot be null.\r\nParameter name: key" }
This is the XCODE error via debug.log:
Error Report: /Client/LoginWithOpenIdConnect: Value cannot be null. Parameter name: key UnityEngine.SignInWithApple.SignInWithApple:appleLoginError(PlayFabError) System.Action`1:Invoke(T) PlayFab.Internal.PlayFabUnityHttp:OnResponse(String, CallRequestContainer) PlayFab.Internal.<Post>d__12:MoveNext() UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)
I also did the setup in the Game Manager Apple Set Setup:
And the OpenID Connect:
What exactly this mean? have an example code showing how to solve this?
Thank you very much.