I want to login to my application using some external auth like facebook google or steam.
I found library: org.pac4j which support some of this login but I dot know how I can integrate it with wicket. After successful auth I want to signIn into my session.
public class WicketSteamAuthenticator extends SteamAuthenticator {
public WicketSteamAuthenticator(SteamClient client) {
super(client);
}
@Override
public void validate(OpenIdCredentials credentials, WebContext context) {
super.validate(credentials, context);
AuthenticatedWebSession.get().signIn(credentials.getUserProfile().getId(), null);
}
}
Problem is that this security filters are before wicket-filter which means I got exception:
There is no application attached to current thread wicket session
is there already some example how to use wicket with spring security and with some external auth ?