Return-Path: Delivered-To: apmail-cxf-dev-archive@www.apache.org Received: (qmail 28498 invoked from network); 26 Jul 2010 11:11:49 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 26 Jul 2010 11:11:49 -0000 Received: (qmail 82446 invoked by uid 500); 26 Jul 2010 11:11:49 -0000 Delivered-To: apmail-cxf-dev-archive@cxf.apache.org Received: (qmail 82126 invoked by uid 500); 26 Jul 2010 11:11:46 -0000 Mailing-List: contact dev-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list dev@cxf.apache.org Received: (qmail 82117 invoked by uid 99); 26 Jul 2010 11:11:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Jul 2010 11:11:46 +0000 X-ASF-Spam-Status: No, hits=4.7 required=10.0 tests=FREEMAIL_FROM,FREEMAIL_REPLY,HTML_MESSAGE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of sberyozkin@gmail.com designates 209.85.214.41 as permitted sender) Received: from [209.85.214.41] (HELO mail-bw0-f41.google.com) (209.85.214.41) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Jul 2010 11:11:38 +0000 Received: by bwz9 with SMTP id 9so3287952bwz.0 for ; Mon, 26 Jul 2010 04:11:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=nWBv4j1ioA7IcwwyBmuetBUzmRGgOWANHlD2NTgnY4A=; b=qy1t9xZpyGqh39iWtSGX13Uy3LoY6fAEXtW4dETlqpuerNABPcVLgGPng72olwZ1jG ppu7cwDjn1eJIb4UylwTtOn6SllbqEY2vsfwUyF+6N/fmBvy1qoCs1xzsS4ftgVEcdlS Qe2Rb6Kqo34d+ony03vGFEbTvrbujBBeGRpK8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=Wh7OyK3bOSlzoenTED4LHQNivnKnB0LG5cYtX7rUHgyizWpB3KWIEVt/ikzoxe7hTz H0rVaG3ijtJOWFkfHb1UEbOu9jkhwF0wi79ZhZdPZAokaMvv7G4tldvPm4uJZyDI+ewV IyKFeGDwtmudWbuLMTotzL4dSFDvr48zpI6U4= MIME-Version: 1.0 Received: by 10.204.163.77 with SMTP id z13mr5235131bkx.169.1280142678170; Mon, 26 Jul 2010 04:11:18 -0700 (PDT) Received: by 10.204.34.69 with HTTP; Mon, 26 Jul 2010 04:11:18 -0700 (PDT) In-Reply-To: References: Date: Mon, 26 Jul 2010 12:11:18 +0100 Message-ID: Subject: Re: OAuth client and server demos From: Sergey Beryozkin To: dev@cxf.apache.org Content-Type: multipart/alternative; boundary=0003255557ee981cf9048c4871ea X-Virus-Checked: Checked by ClamAV on apache.org --0003255557ee981cf9048c4871ea Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: quoted-printable Hi =A3ukasz 2010/7/26 =A3ukasz More=F1 > Hi Sergey, > > I'm really sorry for such commit, I know it shouldn't happen. I turned > off checkstyle as i couldn't configure it properly on intellij and it > was annoying during development. > I will apply proper changes ASAP. > > no worries at all, I've broken the real builds with checkstyle errors so many times and it is the CXF sandbox after :-) > According to the demo, I built it as usual web-app, if it worked, use > this same sources to deploy on GAE. > However because of GAE restrictions it always needs minor changes > before deploy, i.e. GAE can't read configuration files such as: > cxf-extension-http.xml > from jars, so I copied it to WEB-INF folder. > Commited to svn version does not depend on GAE SDK and can be run > locally with jetty:run. > > Yes, I warned about server configuration part:). I will take care to > make it simpler. > I do not think it is too complicated - the simplification can be done once the whole flow is sound... > So far, oauth consumer properties are hardcoded and injected into > oauth provider, as I think it is not oauth library responsibility to > deal with consumer registration. > Hovewer for demo it would be good to have something like that. I would > do registration form at the server as it is done by current big oauth > implementations. > I agree that conceptually the registration of consumers is a separate issue= . But it is part of the solution that users will be eventually offering so just showing them that the consumers have to go and register themselves wit= h help people with coming up with some custom registration forms, etc. The registration does not have to be done at the server hosting the resource, i= t is just important for the OAuth provider be able to get to the consumer details. I'm fine with assuming at the moment that the registration handler is collocated with the endpoints/providers enforcing OAuth flow. But the callback uri which is being injected at the moment should go anyway given that it is part of the actual flow, specifically, the consumer provides it during the request token request > > Recently I've noticed that Camel have done oauth client as well:): > http://camel.apache.org/tutorial-oauth.html > > Thanks much for review, and hints. > > thanks for your effort :-) Sergey > Cheers, > Lukasz > > > 2010/7/24 Sergey Beryozkin : > > Hi =A3ukasz > > > > Sorry for a delay, I should've come back earlier to you. > > > > I've run the demo hosted at the app engine and I think from the educati= on > > point of view it is a good demo and it is handy one does not even has t= o > > build anything in order to try it. > > > > I've had a problem building the rt/rs/oauth tests - there's a bunch of > > CheckStyle errors. Can you please build sandbox/oauth_1.0a from the > trunk, > > just do 'mvn install -Pfastinstall' and then do 'mvn install' from rt/r= s/ > ? > > One other thing, please move the demo to > > "distribution/src/main/release/samples/" as well add Readme to it. > > > > Also I can not build the demo too, the client build fails with the > following > > dependency missing > > 1) net.oauth.core:oauth-consumer:jar:20100527 > > > > But I'm seeing an oauth repo in the rt/rs/oauth pom, have you built it = in > > the GAE dev environment ? > > > > Can you please spend a bit of time on cleaning the build a bit : > > - fix the checkstyle errors and move the demo to the > > ""distribution/src/main/release/samples/"" area and also add Readme; > after > > building the distribution (mvn install in trunk/distribution) you can > easily > > verify the demo can be run by locating in the target. > > - add the oauth dependency in the parent pom so that the rs/oauth modul= e > can > > depend on it without specifying a version and have the demo client modu= le > > depending on rt/rs/oauth module instead (similarly to the server one) > > - during the main build please use the Spring version CXF depends upon > and > > use its -Pspring3 profile to build for the deployment into GAE > > > > As far as the demo is concerned. I looked at the server part and it loo= ks > > complicated enough :-) but I think it makes sense to me. I'll likely as= k > for > > some modifications but perhaps if you could start with updating the dem= o > > such that a consumer initiates its own registration with the OAuth serv= er > : > > I can see at the moment an oauth provider is injected with some sample > > consumer properties. I'm not sure what is the best way to do it : may b= e > the > > server can return a registration form or the client can just push the > > registration info itself. > > > > Overall I think it is a good progress indeed especially given the > complexity > > of the whole effort. > > > > > > > > thanks, Sergey > > > > On Wed, Jul 14, 2010 at 10:14 PM, =A3ukasz More=F1 >wrote: > > > >> Hi all, > >> > >> I have managed to create two sample OAuth aplications: > >> ordinary OAuth 1.0a client: http://www.oauthclient.appspot.com > >> and authorization server that uses CXF OAuth module: > >> http://www.cxfoauthserver.appspot.com > >> > >> Both sample applications and changes in oauth library are commited in > >> sandbox. > >> > >> OAuth configuration in sample authorization server app looks a bit > >> awfully but I think most of that can be hidden and done out of band. > >> There is still some areas in specification not covered by > >> implementation, so I would like to take care of that in next steps. > >> > >> Thanks in advance for some feedback. > >> > >> Cheers, > >> Lukasz > >> > > > --0003255557ee981cf9048c4871ea--