[
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