I have a MVC4 portal that needs the users to be authenticated by office 365 not SharePoint. users for different organizations will be authenticated by this portal. Just as https://login.microsoftonline.com/, regardless of your domain/organization is, when you enter your email address and password, office365 authenticate you and take you to your account or organization. I want to implement the same behavior in my portal. Can any body tell me the best way to do this?
I have tried the ACS (Azure Authentication) too but getting the error: Account '[email protected]' is not configured to sign-in to this application.
I have used the ws-metadata federation URL as: "https://login.windows.net/common/FederationMetadata/2007-06/FederationMetadata.xml"
But unable to get the desire result.