MziRintu/plus-api-as3

Error:unsupported_response_type

Opened this issue · 6 comments

What steps will reproduce the problem?
1. Following fields were set in my test case:
static private const scopes:Array = ["https://www.googleapis.com/auth/plus.me", 
"https://www.googleapis.com/auth/plus.login"]; // Scopes, permissions for the 
login.
static private const clientId:String = "xxx.apps.googleusercontent.com"; 
//Clien ID from Google Project
static private const redirectUri:String = "http://localhost"; // Redirect URL 
from Google Project
2. I called authorize function as this:
Plus.authorize(plusReady, getSWV(), clientId, redirectUri, scopes);
3. I'm having Error:unsupported_response_type in iOS simulator

What is the expected output? What do you see instead?
Authenticate properly to plusReady() handler.

What version of the product are you using? On what operating system?
AIR SDK 4.0, Windows 7

Please provide any additional information below.

Original issue reported on code.google.com by santanu4...@gmail.com on 25 Mar 2014 at 7:32

Attachments:

[deleted comment]
When you create new Client ID, make sure you click Web Application, not 
Installed Application, and then you can give REDIRECT_URI.

Original comment by szczypin...@gmail.com on 25 Mar 2014 at 3:16

Attachments:

Oh that is interesting! As I was doing this for mobile platform I selected the 
last option. I'm going to see how this'll work now. Thanks!

Original comment by santanu4...@gmail.com on 26 Mar 2014 at 4:12

Now while creating a new Client ID, I've now selected Web Application, I don't 
know what to put in "Authorized JavaScript Origins" field as my App is targeted 
as a mobile App. So I leave it as it is (default value).

This time I haven't any error and I able to get into the step where it asking 
my acceptance to share my Google+ data with the App. But later this step a 
popup turned on in my Windows iOS simulator asking following things:

"The certificate you are viewing does not match the name of the site you are 
trying to view.
Yes | No | View Certificate | More Info"

I think this is because 'Authorized JavaScript Origins' is not matching with 
the way its running now. I hope this is not expected right..?

Original comment by santanu4...@gmail.com on 26 Mar 2014 at 4:27

Hi! you must use the same URL for Authorized JavaScript origins and for 
Authorized redirect URI. like the picture attach. :)

Original comment by patri...@fidku.com on 27 Mar 2014 at 5:17

Attachments:

Yes, this solve the issue, thanks! Wish great going Google+AS API!

Original comment by santanu4...@gmail.com on 27 Mar 2014 at 6:36