* this method should only be called if {@link #canHandle(Credentials)}
* returns <code>true</code>) and the authentication data is valid.
*/
public AuthenticationPlugin getAuthentication(final Principal principal,
final Credentials creds) {
return new AuthenticationPlugin() {
public boolean authenticate(Credentials credentials)
throws RepositoryException {
OpenIdUser user = authHandler.getOpenIdUser(credentials);
if (user != null) {
return user.isAssociated();