To authenticate users on your system using Office365 account, just use this guide: Walkthrough ASP.NET MVC Identity with Microsoft Account Authentication.
But it won’t work as well as they expect. Even though users are authenticated in Office365, when they access your system, they will have to authenticate using the same credentials. However, nothing that a checkbox
"Remember me" doesn’t solve. :)
Finally, there is no way to continue using the same password as your system and using Office365 authentication. If you will use Office365, it will manage the authentications, not your system.
If you want code to be easy to use, just create a new ASP.NET MVC project in Visual Studio with Forms Authentication template. Then go to controller AccountController
and see the implementations.
On my Github there is an example including Isolation of ASP.NET Identity, can help.
I don’t understand what doubt you’re having.
– Randrade
I wonder if anyone’s ever been in that kind of situation
– Anderson Souza
Probably. But this kind of question is outside the scope of the site. If it was a question of how to do it or something like that, we could even help. But anyway, look at this project. It has an example of how to use the Office 365 API.
– Randrade
Thanks @Randrade really you’re right, I’m continuing the research and if you have any specific questions, put here
– Anderson Souza