Hi, thanks alot for the hints. I've been trying to do the steps but with
servlet. Since the example mostly in servlet/jax-ws. Maybe I should do it
with Tapestry directly.

On Tue, Mar 22, 2016 at 8:38 PM, Chung Khanh Duy <
chungkhanhduy1...@gmail.com> wrote:

> On Tue, Mar 22, 2016 at 6:14 PM, abangkis <abang...@gmail.com> wrote:
>
> > Hi, is there a Tapestry module for OAuth2 Server available?
> >
> ==> Hi, my understanding so far there is no tapestry library for oauth2.
> You have to integrate spring-tapestry security from tynamo project and
> integrate spring oauth2. But this is a little bit tricky to do. However, if
> you understand principle of oauth2, I don't think it's too tough to
> implement oauth2 mechanism yourself:
>
> - define a page ( URL ) and receive a "redirect" param
> - a page should have form to login require user input username and password
> - since user input correct username and password, generate token and expire
> date. Store token and expire date in database.
> - you can use jwt ( json web token ) library to generate token based on
> timestamp + username as seed.
> - Then you redirect to URL that you received via "redirect" param plus with
> token and expire date.
>
> - You can use apache oltu and integrate it to tapestry, it will help you to
> reduce effort to redirect, generating token, expire date....
>
> Hope this help.
>
>
> >
> > I'm currently looking at Apache Oltu to create a OAuth2 Server.
> >
> > Regards.
> >
> > --
> > http://www.mreunionlabs.net/ <http://www.mreunion-labs.net/>
> > twitter : @mreunionlabs @abangkis
> > page : https://plus.google.com/104168782385184990771
> >
>
>
>
> --
> Chung Khánh Duy
> Project Support Manager
> Formos
>



-- 
http://www.mreunionlabs.net/ <http://www.mreunion-labs.net/>
twitter : @mreunionlabs @abangkis
page : https://plus.google.com/104168782385184990771

Reply via email to