Debugging the refactored OpenID workflow. Not stable yet.