You can use the Auth0 solution I built (1). You’d then manage the SSO connections (and a multitude of other possibilities) directly from Auth0 without changing anything else.
Happy to help you get up and running with it.
(P.S. I also have a much simpler login solution, which is not SSO. See 2.)