Made SSO login UI mode to be customizable to use popup or dialog.

Made SSO login UI mode to be customizable to use popup or dialog.