Question

We have a website that runs on our local server which has a publicly available domain. This site has a sql server data source and pages to work with the data. This site needs to require a login to access it.

Now, all the users that will use this site also have an account in our 365 online, and I don't want to issue a separate username and password for my local site.

Is there a way to make my own webapp use Sharepoint's authentication so users wouldn't need two logins?

I'm looking at this page from Microsoft to add microsoft.aspnetcore.authentication.microsoftaccount. Am I right to think this will let me use the authentication in my own webform app?

Was it helpful?

Solution

What you'll want to do is create an app registration in Azure Active Directory and sign your users in using that.

There are a bunch of tutorials/samples on the web (like this one) but they're more aligned with .Net Core/MVC. If you're running WebForms you might some additional sleuthing to do.

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top