Click here to Skip to main content
15,885,780 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello friend,

I am getting problem in my application..I have created Out of browser application that can install by client on own local machine. In that application there is one textbox and submit button. when user entered own username and click on the submit button it redirect to my asp.net website. but How I know that it coming from my application or not.
Posted
Updated 17-Jul-11 19:20pm
v2

You can keep some specific HTTP headers in the request. The desktop application must send those headers to your application or else your website should return "unauthorized access" kind of message. These headers could be like UserName and Password.
 
Share this answer
 
Comments
bhalaniabhishek 18-Jul-11 1:56am    
I passed username with encrypted format but is link secure or not.. In my office there are workers who access this link if any one copy this link and use from at own home then ?
dan!sh 18-Jul-11 3:36am    
If the username and the password in HTTP header (not query string) does not match, then they should not be allowed further. Your website should check for that as soon as a page is requested.
bhalaniabhishek 18-Jul-11 4:19am    
@Danish How to pass username and password in HTTP header...
One way to do this is to pass a secure token or key which is shared across the client or server.
The algorithm that generates the key is shared across both so that the server understands the key sent by the client.

This could help you get started - Client/Server Encryption plus extras[^].

Another way to do this could be to use an SSL certification that would be installed on the client - however, that is probably not the best approach for a Silverlight application running in a sandbox.
 
Share this answer
 
Comments
bhalaniabhishek 18-Jul-11 2:11am    
Thanks @Abhinav
bhalaniabhishek 18-Jul-11 2:13am    
I have question.. my application is running out of browser When I passed value then it redirect to web application.. How to know that request coming from my application. now, I passing values from query string .
If you're using a regular URL browser query, why not add ?ref=[app] to the querystring...
 
Share this answer
 

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