Solved

implementing login info for web services?

Posted on 2006-06-22
2
210 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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This video discusses moving either the default database or any database to a new volume.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

758 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now