ASP.NET WebForms - Login with Microsoft Account

Jaco Pretorius 6 Reputation points
2023-07-21T10:25:39.3533333+00:00

Hello

Is it possible to create a WebForms application and login using your Microsoft Live Account? We would like our clients to use their Microsoft Account and be logged in, even if the browser closes.

I have no idea where to start. Any help will be appreciated!

Kind regards,

Jaco

Microsoft Authenticator
Microsoft Authenticator
A Microsoft app for iOS and Android devices that enables authentication with two-factor verification, phone sign-in, and code generation.
7,063 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,500 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Lan Huang-MSFT 29,666 Reputation points Microsoft Vendor
    2023-07-24T09:08:55.9766667+00:00

    Hi @Jaco Pretorius,

    Regarding how to add a Microsoft login to a web application, Microsoft provides detailed steps in the document:

    Quickstart: Add sign-in with Microsoft to a web app

    Enabling Microsoft Authentication

    If you want to use Windows Authentication, you need to disable Anonymous Authentication and enable Windows Authentication in IIS.

    How to enable Windows authentication for a Web site, Web application, or Web service

    Best regards,
    Lan Huang


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.