TheAnachronism
TheAnachronism

Reputation: 185

Create User authentication in a C# client application

So I wrote quite a few ASP.NET web applications and there I often used the forms authentication. Now I need to do the same but in a client application. What would be the best way to create something like this?

I was searching for it for some time now but I didn't find something that I could implement in my project. I just need to have a login screen and only when it is valid with the user logins I created I should be able to use the complete application.

Can someone please help me?

Upvotes: 0

Views: 878

Answers (2)

YouneS
YouneS

Reputation: 390

I remember using ASP.NET Identity for that purpose. Was very easy and everything is pretty much ready.

ASP.NET Core Identity is a membership system that adds login functionality to ASP.NET Core apps. Users can create an account with the login information stored in Identity or they can use an external login provider

learn.microsoft.com/en-us/aspnet/core/security/authentication/identity

Upvotes: 0

jkramer
jkramer

Reputation: 91

There are probably several approaches that you could take. If the application is internally distributed you could use a database connection to something like SQL Server where you would have accounts set up to validate against. If the distribution is external you may want to consider setting up a server and using socket connections in your application to make calls to your server(again storing account information in a back end database) to validate users.

Upvotes: 1

Related Questions