best practice for an alternative site specific login / user management

5 views
Skip to first unread message

Dani

unread,
Jul 1, 2010, 8:55:28 PM7/1/10
to dyuproject
I would like to offer users the alternative to either login using
openid as well as providing alternatively my own 'traditional' site
specific user management and login. It should work much like
FoxNews.com, where a user can login with the foxnews specific account
or alternatively with an openid. Is there any best practice to achieve
such a 'dual' system. Is there any sample code around. Should I extend
the OpenIdServletFilter to achieve this, or is there a better way?

David Yu

unread,
Jul 2, 2010, 1:44:39 AM7/2/10
to dyupr...@googlegroups.com
The simplest way to achieve your goal is to extend OpendServletFilter.
If you are not using jsp for your view, simply call the static method OpenIdServletFilter.handle for openid authentication within your servlet/filter.

The idea is to check first if the request can be handled by your custom login ...then delegate to openid if can't be.


--
You received this message because you are subscribed to the Google Groups "dyuproject" group.
To post to this group, send email to dyupr...@googlegroups.com.
To unsubscribe from this group, send email to dyuproject+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/dyuproject?hl=en.




--
When the cat is away, the mouse is alone.
- David Yu

Dani

unread,
Jul 2, 2010, 3:47:32 AM7/2/10
to dyuproject
Thanks a lot for that hint David! That very much helped!

On 2 Jul., 07:44, David Yu <david.yu....@gmail.com> wrote:
> On Fri, Jul 2, 2010 at 8:55 AM, Dani <jobe...@gmail.com> wrote:
> > I would like to offer users the alternative to either login using
> > openid as well as providing alternatively my own 'traditional' site
> > specific user management and login. It should work much like
> > FoxNews.com, where a user can login with the foxnews specific account
> > or alternatively with an openid. Is there any best practice to achieve
> > such a 'dual' system. Is there any sample code around. Should I extend
> > the OpenIdServletFilter to achieve this, or is there a better way?
>
> The simplest way to achieve your goal is to extend OpendServletFilter.
> If you are not using jsp for your view, simply call the static method
> OpenIdServletFilter.handle for openid authentication within your
> servlet/filter.
>
> The idea is to check first if the request can be handled by your custom
> login ...then delegate to openid if can't be.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "dyuproject" group.
> > To post to this group, send email to dyupr...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > dyuproject+...@googlegroups.com<dyuproject%2Bunsu...@googlegroups.com>
> > .
Reply all
Reply to author
Forward
0 new messages