ASP.NET MVC Integration of accounts with office365 authentication

Asked

Viewed 258 times

0

I have a project in Asp.net MVC 4 and the users registered by the system itself, however the need arose to authenticate them by office365, that is, when accessing office365 the system recognize the same access email and integrate, not to need to login, but if the user wants to connect with the old password it allows to do the same.

  • I don’t understand what doubt you’re having.

  • I wonder if anyone’s ever been in that kind of situation

  • 1

    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.

  • Thanks @Randrade really you’re right, I’m continuing the research and if you have any specific questions, put here

1 answer

0


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.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.