In Spring you have to implement your own AuthenticationProvider ( e.g.
extend AbstractUserDetailsAuthenticationProvider ) which "supports()"
your own, e.g. OpenIDAuthenticationDetails which extend
AuthenticationDetails. Implement your authentication logic here.
Register it as a bean and add it to providers list in your main
"providerManager" bean.

Then create a login page where you can enter your OpenID details and
on form submit create an OpenIDAuthenticationDetails object and pass
it to your "providerManager" for authentication.

Žilvinas Vilutis

Mobile:   (+370) 652 38353
E-mail:   cika...@gmail.com



On Wed, Dec 29, 2010 at 3:03 PM, Tom Howe <tomh...@artcore.com> wrote:
> Hi Eric,
> I have seen this and maybe it is the approach I should take, however it
> makes no mention of Spring and Id like to be able to have it load the user
> roles from my spring config.
>
> If I use openid4java <http://code.google.com/> to determine whether I can
> authenticate, how do I then tell Spring that I have authenticated them?
>
> Tom
>
> On Wed, Dec 29, 2010 at 12:49 PM, Eric Hamel <dantehick...@gmail.com> wrote:
>
>> This might help...
>>
>> http://www.ibm.com/developerworks/java/library/j-openid/index.html
>>
>> On Wed, Dec 29, 2010 at 5:04 AM, Tom Howe <tomh...@artcore.com> wrote:
>>
>> > I have followed the instructions at
>> >
>> https://cwiki.apache.org/WICKET/spring-security-and-wicket-auth-roles.htmlto
>> > integrate basic user/pass authentication using Spring security into my
>> > wicket app.
>> > How would I go about adding open-id authentication? Spring security
>> > supports
>> > <openid-login> as a config option but adding this has no effect. I think
>> > this is because the example integration with wicket-auth-roles on that
>> page
>> > seems geared only towards user/password authentication.
>> >
>> > Are there any examples for adding openid login in a similar manner to
>> > stackoverflow to a wicket app, preferably using spring?
>> >
>> > Thanks, Tom
>> >
>>
>>
>>
>> --
>> Sent by Eric Hamel
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to