Login using Custom Made API

Blooming Developer 276 Reputation points
2023-04-28T05:58:52.8366667+00:00

Hi All,

I am quite new to API. My requirement is , our vendor is having an application, i want to create an API that allows to login users using their AD account username and password. But how can i create an API that acts as middle ware in asp.net core. Basically we will get username and password from client application , and using my api we need to validate it.

How can i create Rest Webservices with ASP.Net?

Thanks & Regards,

Teena

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,560 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
336 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 65,316 Reputation points
    2023-04-28T15:34:14.33+00:00

    you question is not clear.

    to validate an ad account user/password you use the directory services api.

    https://learn.microsoft.com/en-us/dotnet/api/system.directoryservices?view=dotnet-plat-ext-7.0

    to create a webapi, just create a webapi project.

    dotnet new webapi
    

    but I suspect you want to know how to use your authentication with the vendor app. this will depend on their design. many will support oauth, in which case you can use azure ad oauth support, or create your own oauth server.

    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.