See IdPDiscovery and then SessionInitiator

TBD