Solved

implementing login info for web services?

Posted on 2006-06-22
2
214 Views
Last Modified: 2006-11-18
.We have to write an API to expose a couple of our functions.

1) The below is the class that we would want to be exposed as webservices. We have to put security in place so that authenticated users can use this API. Also, we should be able to track their usage into a database.

I guess this is a simple solution. How can I comeup with a robust solution, say for growing business, if we want to expose Trucks we have (hypothetical).


Client{
         int userName;
         string Passowrd;
}



public class OurCars {

 GetCarInfo( int CarID, ref Client client);
 GetCars(ref Client client);
 GetOtherCars(ref Client client);

}



0
Comment
Question by:tech_question
  • 2
2 Comments
 
LVL 12

Expert Comment

by:topdog770
ID: 16963457
It seems like, at the simplest you are already there..

Have form data that asks for a user name and password and obtains a vehicle id number

make a web service call, GetCarInfo for example, that:

1. determines if the user name and password are valid
2. determines if validated user has rights to get car info and possibly for specific vehicle id number
3. returns the car information for specific vehicle id number



0
 
LVL 12

Accepted Solution

by:
topdog770 earned 500 total points
ID: 16963488
implied pieces seem to be:

Admin piece that allows users to be created, assigned password, optionally assigned rights to specific cars or functionality

// one approach
Web service that provides user authentication [and admin functions?]
Web service that provides vehicle admin functions [ data creation needed? ]
Web service that provides access to car data
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

713 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question