[EXT-299] Added legacy code to the oauth endpoint
[EXT-299] Removed previous SSO hack