Socrates login integration

Added minimum necessary skeleton for socrates login.