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?