If you try to set a primary domain for federation by running the SetĀMsolDomainAuthentication command, it throws the following error:
SetĀMsolDomainAuthentication: You cannot remove this domain as the default domain without replacing it with another default domain. Use the SetĀMsolDomain cmdlet to set another domain as the default domain before you delete this domain.
To fix this issue, change the default domain by performing the following steps:
In the Office 365 portal, click Organization Name on the Admin page.
Click Edit.
Select a new default domain.
This error indicates that you attempted to delete the default domain without replacing it with another domain.
Use the Set-MsolDomain cmdlet to set another domain as the default domain before you delete this domain.
To establish single sign-on from iOS apps to Office 365 services, perform the following steps:
On the Home page, click Identity Servers > [cluster name] > Authentication > Contracts > Plus icon.
Specify a name to identity the contract.
Specify the URI as http://schemas.microsoft.com/ws/2008/06/identity/authenticationmethod/password.
Select the Name/Password - Form - WebService method.