I have multi-tenant SaaS application with single URL address. On application's login screen there is beside username and password fields one more - tenant name.
I would like to add on login screen - Sign On With SalesForce button. There it will be called standard OAuth 2.0 protocol. Problem that I found is, how I will provide tenant name that will be used after authentication ? I know that I can send state within OAuth but I do not know tenant name in the moment when OAuth is initialized ? How to accomplish this ?
Someone has faced with this issue before ?