You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@wookie.apache.org by "Hoang Minh Tien (Created) (JIRA)" <ji...@apache.org> on 2012/01/27 23:52:10 UTC

[jira] [Created] (WOOKIE-307) Improving oauth support (implicit grant) for wookie

Improving oauth support (implicit grant) for wookie
---------------------------------------------------

                 Key: WOOKIE-307
                 URL: https://issues.apache.org/jira/browse/WOOKIE-307
             Project: Wookie
          Issue Type: Improvement
            Reporter: Hoang Minh Tien
            Priority: Minor


Updating oauth support, allowing to set manually client_id and scope to request. Adding a facebook sample widget that write on the wall of friend list
Steps to create a widget connecting to oauthed services:
+ Create a widget with ant seed-widget
+ Adding feature oauth into widget configuration file (config.xml) with the following parameters:
    * clientId: your client id issued by authorization endpoint from oauthed service side
    * authzServer: url of authorization endpoint
    * scope: scope of token issued
+ To make call to oauthed service, 
    1. We obtain an access token by calling to oauth.authenticate()
    2. Then using calling oauth.proxify(service_url) in which url is the url of the oauthed service, by calling this function, access token will be automatically added to the request.
+ To remove token from database, make call to oauth.invalidateToken()

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (WOOKIE-307) Improving oauth support (implicit grant) for wookie

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

Scott Wilson commented on WOOKIE-307:
-------------------------------------

Great ! Thanks Tien

A couple of small changes in the widget were needed for me to get this working:

1. Change widget.shortname in scratchpad/widgets/fbfriend/build.xml to "fbfriend"
2. Remove trailing / characters on <access> elements in scratchpad/widgets/fbfriend/config.xml

(I also just committed a change to the Policy class so it uses 443 as the default port for matching on HTTPS requests, as its a pain to force widget authors to remember to include the port in their URLs.)

With these changes I managed to post to Kris's wall from the widget (sorry Kris!)

Ross said he wanted to review the patch later today, so I won't commit the patch myself - I just wanted to play with it first :-)
                
> Improving oauth support (implicit grant) for wookie
> ---------------------------------------------------
>
>                 Key: WOOKIE-307
>                 URL: https://issues.apache.org/jira/browse/WOOKIE-307
>             Project: Wookie
>          Issue Type: Improvement
>            Reporter: Hoang Minh Tien
>            Priority: Minor
>              Labels: patch
>         Attachments: patch-oauth-facebook
>
>
> Updating oauth support, allowing to set manually client_id and scope to request. Adding a facebook sample widget that write on the wall of friend list
> Steps to create a widget connecting to oauthed services:
> + Create a widget with ant seed-widget
> + Adding feature oauth into widget configuration file (config.xml) with the following parameters:
>     * clientId: your client id issued by authorization endpoint from oauthed service side
>     * authzServer: url of authorization endpoint
>     * scope: scope of token issued
> + To make call to oauthed service, 
>     1. We obtain an access token by calling to oauth.authenticate()
>     2. Then using calling oauth.proxify(service_url) in which url is the url of the oauthed service, by calling this function, access token will be automatically added to the request.
> + To remove token from database, make call to oauth.invalidateToken()

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (WOOKIE-307) Improving oauth support (implicit grant) for wookie

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

Ross Gardler commented on WOOKIE-307:
-------------------------------------

Hey - I have no problem with someone reviewing and committing it before me, it saves me time. Anyway, thanks for your comments above it'll save me some debug time (I'm reviewing now)
                
> Improving oauth support (implicit grant) for wookie
> ---------------------------------------------------
>
>                 Key: WOOKIE-307
>                 URL: https://issues.apache.org/jira/browse/WOOKIE-307
>             Project: Wookie
>          Issue Type: Improvement
>    Affects Versions: 0.9.2
>            Reporter: Hoang Minh Tien
>            Assignee: Ross Gardler
>            Priority: Minor
>              Labels: patch
>         Attachments: patch-oauth-facebook
>
>
> Updating oauth support, allowing to set manually client_id and scope to request. Adding a facebook sample widget that write on the wall of friend list
> Steps to create a widget connecting to oauthed services:
> + Create a widget with ant seed-widget
> + Adding feature oauth into widget configuration file (config.xml) with the following parameters:
>     * clientId: your client id issued by authorization endpoint from oauthed service side
>     * authzServer: url of authorization endpoint
>     * scope: scope of token issued
> + To make call to oauthed service, 
>     1. We obtain an access token by calling to oauth.authenticate()
>     2. Then using calling oauth.proxify(service_url) in which url is the url of the oauthed service, by calling this function, access token will be automatically added to the request.
> + To remove token from database, make call to oauth.invalidateToken()

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (WOOKIE-307) Improving oauth support (implicit grant) for wookie

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

Hoang Minh Tien updated WOOKIE-307:
-----------------------------------

    Attachment: patch-oauth-facebook

oauth patch with facebook sample widget
                
> Improving oauth support (implicit grant) for wookie
> ---------------------------------------------------
>
>                 Key: WOOKIE-307
>                 URL: https://issues.apache.org/jira/browse/WOOKIE-307
>             Project: Wookie
>          Issue Type: Improvement
>            Reporter: Hoang Minh Tien
>            Priority: Minor
>              Labels: patch
>         Attachments: patch-oauth-facebook
>
>
> Updating oauth support, allowing to set manually client_id and scope to request. Adding a facebook sample widget that write on the wall of friend list
> Steps to create a widget connecting to oauthed services:
> + Create a widget with ant seed-widget
> + Adding feature oauth into widget configuration file (config.xml) with the following parameters:
>     * clientId: your client id issued by authorization endpoint from oauthed service side
>     * authzServer: url of authorization endpoint
>     * scope: scope of token issued
> + To make call to oauthed service, 
>     1. We obtain an access token by calling to oauth.authenticate()
>     2. Then using calling oauth.proxify(service_url) in which url is the url of the oauthed service, by calling this function, access token will be automatically added to the request.
> + To remove token from database, make call to oauth.invalidateToken()

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira