Return-Path: X-Original-To: apmail-wicket-users-archive@minotaur.apache.org Delivered-To: apmail-wicket-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 420B2E599 for ; Mon, 18 Feb 2013 19:59:36 +0000 (UTC) Received: (qmail 73566 invoked by uid 500); 18 Feb 2013 19:59:35 -0000 Delivered-To: apmail-wicket-users-archive@wicket.apache.org Received: (qmail 73536 invoked by uid 500); 18 Feb 2013 19:59:35 -0000 Mailing-List: contact users-help@wicket.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@wicket.apache.org Delivered-To: mailing list users@wicket.apache.org Received: (qmail 73526 invoked by uid 99); 18 Feb 2013 19:59:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Feb 2013 19:59:35 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: 166.70.65.168 is neither permitted nor denied by domain of prvs=7761565c6c=michael.chandler@onassignment.com) Received: from [166.70.65.168] (HELO smtp12.onasgn.net) (166.70.65.168) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Feb 2013 19:59:30 +0000 Received: from pps.filterd (smtp12 [127.0.0.1]) by smtp12.onasgn.net (8.14.4/8.14.4) with SMTP id r1IJukUG028087 for ; Mon, 18 Feb 2013 11:59:10 -0800 Received: from oasslcexh04.oaifield.onasgn.com ([172.23.1.142]) by smtp12.onasgn.net with ESMTP id 1akq60rrtb-1 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL) for ; Mon, 18 Feb 2013 11:59:09 -0800 Received: from OASSLCEXM03.oaifield.onasgn.com ([fe80::6dba:55e5:8776:f6ac]) by oasslcexh04.oaifield.onasgn.com ([fe80::109c:82c4:faaa:33de%15]) with mapi id 14.02.0309.002; Mon, 18 Feb 2013 11:59:09 -0800 From: Michael Chandler To: "users@wicket.apache.org" Subject: RE: Anyone using Wicket-Stuff Facebook Thread-Topic: Anyone using Wicket-Stuff Facebook Thread-Index: AQHODYgeoHLsr/gaVEOk9W3I6/Hrv5h/xUIAgAC2XwD//4ziUA== Date: Mon, 18 Feb 2013 19:59:07 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.23.1.237] x-tm-as-product-ver: SMEX-10.2.0.1135-7.000.1014-19644.006 x-tm-as-result: No--47.108100-8.000000-31 x-tm-as-user-approved-sender: No x-tm-as-user-blocked-sender: No x-loop: 1 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.9.8327,1.0.431,0.0.0000 definitions=2013-02-18_05:2013-02-18,2013-02-18,1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 suspectscore=2 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=6.0.2-1211240000 definitions=main-1302180196 X-Virus-Checked: Checked by ClamAV on apache.org I also plan to use Scribe and spent a little time with it this weekend. My= particular example uses LinkedIn, but the implementations would probably b= e near identical. In this particular example, I'm trying to retrieve the A= uthorize URL that a user would use to authenticate with LinkedIn. The foll= owing method returns the API hyperlink that I would use for a "Login with L= inkedIn" button: private String getLinkedInAuth() { OAuthService service =3D new ServiceBuilder() .provider(LinkedInApi.class) .apiKey("your_api_key").apiSecret("your_api_secret_hash").build(); =09 Token requestToken =3D service.getRequestToken(); String link =3D service.getAuthorizationUrl(requestToken); =09 return link; } I haven't done much from there, but I believe you should be able to define = a return URL when a user successfully authenticates that you host (check yo= ur Facebook app config on Facebook.com). That URL should be prepared to ac= cept a response that will include the user's access token which you will us= e to sign any of your graph api requests. I haven't completed my integration so hopefully I am not over simplifying. Mike -----Original Message----- From: Stephen Walsh [mailto:stephen@connectwithawalsh.com]=20 Sent: Monday, February 18, 2013 10:47 AM To: users@wicket.apache.org Subject: Re: Anyone using Wicket-Stuff Facebook I'm also using Scribe, Martin. I'm following up with the developer to figu= re out how to use it. He has a copy and paste in his example which obvious= ly won't work for an actual user. https://github.com/fernandezpablo85/scribe-java/blob/master/src/test/java/o= rg/scribe/examples/FacebookExample.java _______________________________________ Stephen Walsh | http://connectwithawalsh.com On Mon, Feb 18, 2013 at 1:53 AM, Martin Grigorov wrot= e: > Hi, > > If you need to implement OAuth authentication then I can recommend you=20 > https://github.com/fernandezpablo85/scribe-java > It is easy to implement both OAuth v.1 and v.2 with it > > > On Mon, Feb 18, 2013 at 5:28 AM, Stephen Walsh <=20 > stephen@connectwithawalsh.com> wrote: > > > https://github.com/wicketstuff/core/wiki/Facebook > > > > Anyone using this that can point me in the right direction on how to=20 > > use the behaviors? > > > > I followed the example on getting a login button and it seems like=20 > > that works well, but I have no idea to tell if the user has=20 > > validated and how > to > > capture that validation. Clearly it's in the behaviors section of=20 > > the > jar, > > but I'm not quite sure how to use it. > > > > Thanks. > > _______________________________________ > > Stephen Walsh | http://connectwithawalsh.com > > > > > > -- > Martin Grigorov > jWeekend > Training, Consulting, Development > http://jWeekend.com > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org For additional commands, e-mail: users-help@wicket.apache.org