// public string setServerAdd(string address){ // char lastChar = address [address.Length]; // if (lastChar.CompareTo ("/") == 0) { // return address.Substring (0, address.Length - 1); // }; // // return address; // } public void setTokenJson(string result) { Debug.Log("[AzureMobileAppRequest] " + result); var resultDic = (Dictionary <string, object>)JsonParser.Read2Object(result); cbAuth.token = (string)resultDic ["token"]; Debug.Log("[token] " + cbAuth.token); var crypt = CBAuthentication.AES_decrypt(cbAuth.token, "1234567890123456", "1234567890123456"); Debug.Log("[token decrypt] " + crypt); }
public static string getTokenData(string json, string key, string IV) { Debug.Log("[AzureMobileAppRequest] " + json); var resultDic = (Dictionary <string, object>)JsonParser.Read2Object(json); string token = (string)resultDic ["token"]; Debug.Log("[token] " + token); var crypt = CBAuthentication.AES_decrypt(token, "1234567890123456", "1234567890123456"); Debug.Log("[token decrypt] " + crypt); return(token); }
public AzureMobileAppRequestHelper(string azureEndPoint, string token /*, MobileServiceUser User*/) { cbAuth = new CBAuthentication(); }
public AzureMobileAppRequestHelper() { cbAuth = new CBAuthentication(); }