We are currently in the process of developing a range of SharePoint applications which will have mobile apps alongside them which connect to the SharePoint site.
We are having a few issues getting authentication to work on the mobile (iOS) side of things to work.
In development we have been able to define our own SharePoint Online URL for user authentication but in an actual release this wouldn't work since each user will have their own AD in their own Office 365 tenancy (which also means a different SP site URL).
Ideally we don't want to have to make users enter the site URL (although this is an option if needed). The applications are SharePoint Online only if that makes a difference.
Is there anyway that we can have the user login with their Office 365 credentials, then get their original office 365 domain (xxxx.sharepoint.com) returned or something similar?
Ideally we want a user to be able to pick up their phone, login with their Office 365 credentials on the application and then have the application connect to their SharePoint Online deployment automatically.