You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@wookie.apache.org by "Matthias Niederhausen (JIRA)" <ji...@apache.org> on 2012/10/04 10:05:07 UTC

[jira] [Created] (WOOKIE-381) oAuth feature does not work for Google APIs

Matthias Niederhausen created WOOKIE-381:
--------------------------------------------

             Summary: oAuth feature does not work for Google APIs
                 Key: WOOKIE-381
                 URL: https://issues.apache.org/jira/browse/WOOKIE-381
             Project: Wookie
          Issue Type: Bug
          Components: Feature Management
    Affects Versions: 0.14.0
         Environment: Windows 7, Chrome
            Reporter: Matthias Niederhausen


I tried to authenticate at Google using the oauth feature with the following configuration:

  	<feature name="http://oauth.net/2" required="true">
		<param name="clientId" value="806655260788.apps.googleusercontent.com" />
		<param name="authzServer" value="https://accounts.google.com/o/oauth2/auth" />
		<param name="scope" value="https://www.google.com/m8/feeds" />
	</feature>

and starting the process using oAuth.authenticate()
The login popup opens just fine and I can allow the application to access the data, but when I get redirected (to wookie?), I get a javascript alert window "Error!" and the window closes just afterwards. The error alert prevents me from inspecting any closer, but I managed to create a screenshot of the Chrome console with the error stacktrace.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (WOOKIE-381) oAuth feature does not work for Google APIs

Posted by "Matthias Niederhausen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WOOKIE-381?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matthias Niederhausen updated WOOKIE-381:
-----------------------------------------

    Attachment: patch.txt

Fix for new widget location
                
> oAuth feature does not work for Google APIs
> -------------------------------------------
>
>                 Key: WOOKIE-381
>                 URL: https://issues.apache.org/jira/browse/WOOKIE-381
>             Project: Wookie
>          Issue Type: Bug
>          Components: Feature Management
>    Affects Versions: 0.11.0
>         Environment: Windows 7, Chrome
>            Reporter: Matthias Niederhausen
>             Fix For: 0.13.0
>
>         Attachments: chrome.PNG, patch.txt
>
>
> I tried to authenticate at Google using the oauth feature with the following configuration:
>   	<feature name="http://oauth.net/2" required="true">
> 		<param name="clientId" value="806655260788.apps.googleusercontent.com" />
> 		<param name="authzServer" value="https://accounts.google.com/o/oauth2/auth" />
> 		<param name="scope" value="https://www.google.com/m8/feeds" />
> 	</feature>
> and starting the process using oAuth.authenticate()
> The login popup opens just fine and I can allow the application to access the data, but when I get redirected (to wookie?), I get a javascript alert window "Error!" and the window closes just afterwards. The error alert prevents me from inspecting any closer, but I managed to create a screenshot of the Chrome console with the error stacktrace.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (WOOKIE-381) oAuth feature does not work for Google APIs

Posted by "Hoang Minh Tien (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WOOKIE-381?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13471009#comment-13471009 ] 

Hoang Minh Tien commented on WOOKIE-381:
----------------------------------------

The bug is fixed with rev1395049
You may like to play around with some other optional parameters:
popupWidth (default 400px), popupHeight (default 500px) to define the with and height of authorization request popup window
persist (default true): the token will be saved in db and can be shared between the same widget instance which located in different container. if this value is false, token will not be persisted and can't be shared.
the return url registered has the forms: http://your_wookie_server/wookie/features/oauth/implicit (for implicit grant).
                
> oAuth feature does not work for Google APIs
> -------------------------------------------
>
>                 Key: WOOKIE-381
>                 URL: https://issues.apache.org/jira/browse/WOOKIE-381
>             Project: Wookie
>          Issue Type: Bug
>          Components: Feature Management
>    Affects Versions: 0.14.0
>         Environment: Windows 7, Chrome
>            Reporter: Matthias Niederhausen
>         Attachments: chrome.PNG
>
>
> I tried to authenticate at Google using the oauth feature with the following configuration:
>   	<feature name="http://oauth.net/2" required="true">
> 		<param name="clientId" value="806655260788.apps.googleusercontent.com" />
> 		<param name="authzServer" value="https://accounts.google.com/o/oauth2/auth" />
> 		<param name="scope" value="https://www.google.com/m8/feeds" />
> 	</feature>
> and starting the process using oAuth.authenticate()
> The login popup opens just fine and I can allow the application to access the data, but when I get redirected (to wookie?), I get a javascript alert window "Error!" and the window closes just afterwards. The error alert prevents me from inspecting any closer, but I managed to create a screenshot of the Chrome console with the error stacktrace.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (WOOKIE-381) oAuth feature does not work for Google APIs

Posted by "Matthias Niederhausen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WOOKIE-381?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matthias Niederhausen updated WOOKIE-381:
-----------------------------------------

    Attachment: chrome.PNG

The Chrome console when the alert window pops up.
                
> oAuth feature does not work for Google APIs
> -------------------------------------------
>
>                 Key: WOOKIE-381
>                 URL: https://issues.apache.org/jira/browse/WOOKIE-381
>             Project: Wookie
>          Issue Type: Bug
>          Components: Feature Management
>    Affects Versions: 0.14.0
>         Environment: Windows 7, Chrome
>            Reporter: Matthias Niederhausen
>         Attachments: chrome.PNG
>
>
> I tried to authenticate at Google using the oauth feature with the following configuration:
>   	<feature name="http://oauth.net/2" required="true">
> 		<param name="clientId" value="806655260788.apps.googleusercontent.com" />
> 		<param name="authzServer" value="https://accounts.google.com/o/oauth2/auth" />
> 		<param name="scope" value="https://www.google.com/m8/feeds" />
> 	</feature>
> and starting the process using oAuth.authenticate()
> The login popup opens just fine and I can allow the application to access the data, but when I get redirected (to wookie?), I get a javascript alert window "Error!" and the window closes just afterwards. The error alert prevents me from inspecting any closer, but I managed to create a screenshot of the Chrome console with the error stacktrace.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (WOOKIE-381) oAuth feature does not work for Google APIs

Posted by "Matthias Niederhausen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WOOKIE-381?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13471453#comment-13471453 ] 

Matthias Niederhausen commented on WOOKIE-381:
----------------------------------------------

Thanks a lot, I now got the whole thing to work. There still is an error (I guess because of another Patch by Scott) that the client does not receive the oAuth parameter map. I will add a patch for this.
                
> oAuth feature does not work for Google APIs
> -------------------------------------------
>
>                 Key: WOOKIE-381
>                 URL: https://issues.apache.org/jira/browse/WOOKIE-381
>             Project: Wookie
>          Issue Type: Bug
>          Components: Feature Management
>    Affects Versions: 0.11.0
>         Environment: Windows 7, Chrome
>            Reporter: Matthias Niederhausen
>             Fix For: 0.13.0
>
>         Attachments: chrome.PNG
>
>
> I tried to authenticate at Google using the oauth feature with the following configuration:
>   	<feature name="http://oauth.net/2" required="true">
> 		<param name="clientId" value="806655260788.apps.googleusercontent.com" />
> 		<param name="authzServer" value="https://accounts.google.com/o/oauth2/auth" />
> 		<param name="scope" value="https://www.google.com/m8/feeds" />
> 	</feature>
> and starting the process using oAuth.authenticate()
> The login popup opens just fine and I can allow the application to access the data, but when I get redirected (to wookie?), I get a javascript alert window "Error!" and the window closes just afterwards. The error alert prevents me from inspecting any closer, but I managed to create a screenshot of the Chrome console with the error stacktrace.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (WOOKIE-381) oAuth feature does not work for Google APIs

Posted by "Hoang Minh Tien (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WOOKIE-381?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13469257#comment-13469257 ] 

Hoang Minh Tien commented on WOOKIE-381:
----------------------------------------

Thanks Matthias. The exact match return URL check of Google is not suitable for current implementation of oauth feature. I think of using oauth need a separate context path to handle oauth response, that would be also a preparation to support other oauth profiles in the future. It will take some time to implement it.
                
> oAuth feature does not work for Google APIs
> -------------------------------------------
>
>                 Key: WOOKIE-381
>                 URL: https://issues.apache.org/jira/browse/WOOKIE-381
>             Project: Wookie
>          Issue Type: Bug
>          Components: Feature Management
>    Affects Versions: 0.14.0
>         Environment: Windows 7, Chrome
>            Reporter: Matthias Niederhausen
>         Attachments: chrome.PNG
>
>
> I tried to authenticate at Google using the oauth feature with the following configuration:
>   	<feature name="http://oauth.net/2" required="true">
> 		<param name="clientId" value="806655260788.apps.googleusercontent.com" />
> 		<param name="authzServer" value="https://accounts.google.com/o/oauth2/auth" />
> 		<param name="scope" value="https://www.google.com/m8/feeds" />
> 	</feature>
> and starting the process using oAuth.authenticate()
> The login popup opens just fine and I can allow the application to access the data, but when I get redirected (to wookie?), I get a javascript alert window "Error!" and the window closes just afterwards. The error alert prevents me from inspecting any closer, but I managed to create a screenshot of the Chrome console with the error stacktrace.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (WOOKIE-381) oAuth feature does not work for Google APIs

Posted by "Scott Wilson (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WOOKIE-381?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Scott Wilson updated WOOKIE-381:
--------------------------------

    Fix Version/s: 0.13.0
    
> oAuth feature does not work for Google APIs
> -------------------------------------------
>
>                 Key: WOOKIE-381
>                 URL: https://issues.apache.org/jira/browse/WOOKIE-381
>             Project: Wookie
>          Issue Type: Bug
>          Components: Feature Management
>    Affects Versions: 0.11.0
>         Environment: Windows 7, Chrome
>            Reporter: Matthias Niederhausen
>             Fix For: 0.13.0
>
>         Attachments: chrome.PNG
>
>
> I tried to authenticate at Google using the oauth feature with the following configuration:
>   	<feature name="http://oauth.net/2" required="true">
> 		<param name="clientId" value="806655260788.apps.googleusercontent.com" />
> 		<param name="authzServer" value="https://accounts.google.com/o/oauth2/auth" />
> 		<param name="scope" value="https://www.google.com/m8/feeds" />
> 	</feature>
> and starting the process using oAuth.authenticate()
> The login popup opens just fine and I can allow the application to access the data, but when I get redirected (to wookie?), I get a javascript alert window "Error!" and the window closes just afterwards. The error alert prevents me from inspecting any closer, but I managed to create a screenshot of the Chrome console with the error stacktrace.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira