Add some code to handle the SSO wrapper's return data
Fix routing for SSO