Click here to Skip to main content
15,867,756 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more: , +
Hey guys, I'm just wondering if anyone has any experience in using WCF to authenticate a console application in a web application. I have tried many solutions but they all seem to require the user to use .NET's built in Role and Membership classes. The problem is my console application doesn't have a username or password so I'm not quite sure on how to authenticate it.

This is what I have tried (amounst many other things)
Walk through WCF

The login page in my application is authenticated through the database and not through ASP's built in membership so I don't know how to make the above work in my scenario.

Even if WFC is not the correct way to go about this I am very open to suggestions.

Thanks for the help
Posted
Updated 7-Apr-14 12:15pm
v2
Comments
Sergey Alexandrovich Kryukov 7-Apr-14 18:47pm    
Sorry, on my first attempt I misread your question. First of all, what's the purpose of the console application in ASP.NET? It can only be run on server side. What do you mean by authorizing it. Perhaps you need to start with your purpose.
—SA
frostcox 7-Apr-14 18:51pm    
Ok my colsole application will be a windows service, which through signalr will push notifications to the client. I am just having trouble authenticating the service. I have tried loads of different approaches to try an achieve this but no luck, I suppose I am just looking for the correct way to do this. My web application uses Forms Authentication.
Sergey Alexandrovich Kryukov 7-Apr-14 18:56pm    
No, a console application cannot be a Windows Service. Windows Services don't have consoles or any UI. Yes, you can use Windows Services, you can use SignalR (good idea), and so on...
And... software development is not done by "luck". At this moment, you need to do some research. And you explained some of your goals, but not the ultimate goals. Why all that? And I don't understand why service need authentication...
—SA
frostcox 7-Apr-14 18:59pm    
Ok back to the drawing board I guess, thanks

1 solution

I believe you have to customize different service providers, these links may be helpful for you

Customize User Login When Using the WCF Authentication Service[^]

Custom MembershipProvider and RoleProvider Implementations that use Web Services[^]
 
Share this answer
 
Comments
frostcox 8-Apr-14 7:45am    
Thank you sir, i will take a look at the options, appreciate the help.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900