-
1. Re: Pankow Gadget...does it work?
haint May 13, 2012 10:55 PM (in response to sviluppatorefico)1 of 1 people found this helpfulAt the moment, We support only Oauth consumer and Oauth provider is not yet. The oauth.xml gadget is a test GateIn as Oauth provider.
oauth.xml
<Require feature="oauth">
<Param name="service_name">
demo
</Param>
<Param name="access_url">
http://localhost:9090/oauth-provider/access_token
</Param>
<Param name="access_method">
GET
</Param>
<Param name="request_url">
http://localhost:9090/oauth-provider/request_token
</Param>
<Param name="request_method">
GET
</Param>
<Param name="authorize_url">
http://localhost:9090/oauth-provider/authorize
</Param>
</Require>
It use hardcode local endpoint which is not exist in GateIn
-
2. Re: Pankow Gadget...does it work?
sviluppatorefico May 14, 2012 4:48 AM (in response to haint)Thanks you....where I find some info to start a oauth provider and how install the oauth feauture? I remember you it is not in the installed features:
[globals, core.config, core.util, shindig.auth, core.json, core.io, core.prefs, core.legacy, core.log, core]
-
3. Re: Pankow Gadget...does it work?
haint May 14, 2012 5:36 AM (in response to sviluppatorefico)That is new feature. We study on https://github.com/trongtt/exogtn/commits/3.2.x-oauth
-
4. Re: Pankow Gadget...does it work?
sviluppatorefico May 14, 2012 9:26 AM (in response to haint)can be used the shindig.auth feature for the authentication in the 3.2.0.GA, waiting for the oauth? If yes, where I find info about it?
-
5. Re: Pankow Gadget...does it work?
kien_nguyen May 14, 2012 10:45 PM (in response to sviluppatorefico)Hi Luca,
The "shindig.auth" is mechanism to manage "gadget security token" of Shindig. it's not related to OAuth and gadget specification. shindig.auth is for shindig internal use only and we shouldn't use it in gadget.
OAuth: can you give the detail cases that you want to use OAuth in GateIn. Is it an OAuth gadget OR a service you want to protect it by OAuth mechanism OR ...?
-
6. Re: Pankow Gadget...does it work?
sviluppatorefico May 15, 2012 5:20 PM (in response to kien_nguyen)nothing of them...I only wanted know how start that test......I will see the codes on github
-
7. Re: Pankow Gadget...does it work?
ndkhoiits May 15, 2012 9:21 PM (in response to sviluppatorefico)Actually, GateIn has supported OAuth gadget for testing purpose.
For example, you can add this gadget http://dirk.balfanz.googlepages.com/contacts.xml to GateIn as a remote gadget (this is a google contact gadget which using OAuth to authorize with Google OAuth provider), you will know how to OAuth gadget works in GateIn.
Unfortunately, you have to manual configure some OAuth information in oauth.json https://github.com/gatein/gatein-portal/blob/master/gadgets/core/src/main/java/config/oauth.json such as gadget URL, consumer information