Click here to Skip to main content
15,902,938 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear all,

I am writing to seek, in how to construct logic for to be able to call api controller query string such as api/user?username=9999&password=6666 and return message if successful. I a aiming to be able to call username and password and return message, if they are successful or not.

I have entity class called api_login. I am a little stuck in how do I retrieve api_login details, for example what kind of logic/method would i need to implement. Would i need to call 'GET' method for username or 'POST' method?

I plan to construct the logic in business logic layer such as Data class and call the data methods from data class into api controller class users.


Any help or guidance, in how do go about tackling this issue, would be very helpful.
Many thanks.
Posted

1 solution

Parameters passed in the query string are in CLEAR TEXT. Are you seriously going to pass a username and password in a format that is easily read and intercepted??
 
Share this answer
 
Comments
miss786 10-Feb-14 7:50am    
I actually have basic authentication filter but the filter is setup to take static array username and password string values (coded in) and I would like to be able to call username and password from my ER ( entity diagram) but I am not sure how do i got about going so, hence I broken the down the problem, concentrating on how to build the logic. Apology if my approach was not clear. I will try to update my original post. Is their any framework I can use to call data from entity diagram. Many thanks

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