Reuse code in login script
What does this MR do and why?
SSO login code is a common part for all functions into script. In order to avoid duplication and make the code more readable and easy to understand I've create a dedicated function called login_to_sso and just call it whenever is needed.
Related reference(s)
Closes #1397 (closed)
Test coverage
Edited by Bogdan Antohe