refactoring new sso flow wiht iframe method