[ 
https://issues.apache.org/jira/browse/SHINDIG-1020?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12706767#action_12706767
 ] 

Márton Salomváry commented on SHINDIG-1020:
-------------------------------------------

Oauth's consumer.properties has to be modified too (useful example though!):

svn diff  
example/webapp/src/main/java/net/oauth/example/consumer/webapp/consumer.properties
Index: 
example/webapp/src/main/java/net/oauth/example/consumer/webapp/consumer.properties
===================================================================
--- 
example/webapp/src/main/java/net/oauth/example/consumer/webapp/consumer.properties
  (revision 992)
+++ 
example/webapp/src/main/java/net/oauth/example/consumer/webapp/consumer.properties
  (working copy)
@@ -41,5 +41,14 @@
 yahoo.serviceProvider.userAuthorizationURL: oauth/v2/request_auth
 yahoo.serviceProvider.accessTokenURL: oauth/v2/get_token
 yahoo.consumerKey: - your key here -
-yahoo.consumerSecret: - your secret here -
+yahoo.consumerSecret: - your secret here -
+
+
+shindig.serviceProvider.baseURL: http://localhost:8080/oauth/
+shindig.serviceProvider.requestTokenURL: requestToken
+shindig.serviceProvider.userAuthorizationURL: authorize
+shindig.serviceProvider.accessTokenURL: accessToken
+shindig.consumerKey: myKey
+shindig.consumerSecret: mySecret

+


> Shindig OAuth Provider Example
> ------------------------------
>
>                 Key: SHINDIG-1020
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-1020
>             Project: Shindig
>          Issue Type: Improvement
>          Components: Java
>         Environment: All
>            Reporter: Mark Weitzel
>            Priority: Trivial
>         Attachments: AnotherOAuthShindigExample.zip
>
>
> I've been working with OAuth a bit lately. Since there has been a bunch of 
> work on the OAuth support in Shindig, I wanted to be able to use the OAuth 
> example and leverage Shindig as the provider. To create this example, I 
> simply took the existing sample app from the OAuth project and added a 
> Shindig consumer. 
> Here's what I did to get this working. I've attached all the files here if 
> other people want to try this out.
> OAUTH: 
> * Created ShindigConsumer.java. This was based off of SampleProvider.java. 
> I just removed the "echo" code and changed the invocation to use the 
> social api.
> * Added entries to consumer properties for shindig. As a side note, I also 
> changed the sample provider to look on port 9090 just to be consistent 
> with the oauth example in shindig.
> * Added the Shindig servlet to web.xml and index.jsp
> SHINDIG:
> * Added an entry to OAuth.json
> * Added entries to canonicaldb.json
> If this example makes sense, would it be possible to consider making this 
> one of the "out of the box" providers with both projects? I can add a page 
> to the wiki to explain how to get this up and running....

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to