के माध्यम से Google लॉगिन त्रुटि मेरे ऐप में मैं Google लॉगिन का उपयोग करना चाहता हूं, इसलिए इसके लिए मैं Azure Services का उपयोग कर रहा हूं। गूगल से, मैं सफलतापूर्वक प्रवेश और सभी विवरण प्राप्त करने में सक्षम हूँ, लेकिन Azure पक्ष पर निम्न त्रुटि होती है:Azure
Error Domain=com.Microsoft.WindowsAzureMobileServices.ErrorDomain Code=-1302 "Error: The id_token issuer is invalid." UserInfo={NSLocalizedDescription=Error: The id_token issuer is invalid.}
कोड:
if (user.authentication != nil)
{
let delegate = UIApplication.sharedApplication().delegate as? AppDelegate
let client = delegate!.client!;
// let nextViewController = self.storyboard?.instantiateViewControllerWithIdentifier("SWRevealViewController") as! SWRevealViewController
// self.presentViewController(nextViewController, animated: true, completion: nil)
let payload: [String: String] = ["id_token": idToken]
client.loginWithProvider("google", token: payload, completion: { (user, error) in
if error != nil{
//here i am getting the above mentioned error
print(error)
}
if user != nil{
print(user)
print("Google Login Sucess")
self.call(false, email: email, firstName: firstName, lastName: lastName, id: googleId, token: idToken,imageUrl: imageUrl.absoluteString)
}
})
}
override func viewDidLoad()
{
super.viewDidLoad();
GIDSignIn.sharedInstance().signOut()
GIDSignIn.sharedInstance().scopes.append("https://www.googleapis.com/auth/plus.login");
GIDSignIn.sharedInstance().clientID = "XXXXXXXX";
GIDSignIn.sharedInstance().serverClientID = "XXXXXXXXX"
GIDSignIn.sharedInstance().uiDelegate = self
}
मैं नहीं जानता इस टोकन मुद्दा है कि क्या या कुछ और।
एक ही मुद्दे में चल रहा है - आप को हल करने में सक्षम थे यह? – user648931
@ user648931 nah समस्या अभी भी तय नहीं है, अगर आपने इसे हल किया है तो कृपया मुझे बताएं। –
@ user648931 क्या आपने इस मुद्दे को हल किया है? –