Small update to SSO check to allow sso_referer not to include last path element to avoid issues with friendly URLs - refs BT#8268
Minor - Code styling changes (during #8268)
Add sso_challenge method as a second alternative to SSO authentication - refs BT#8268
Minor - Code styling changes (during #8268)