Click here to Skip to main content
15,916,835 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hi all,
I am using a webservices which accept userId from one website and pass it to second website. How I will perform this operation in secure way.
Posted

You can encrypt the userId before sending the request and decrypt it as the message is received.

See this[^] article.
 
Share this answer
 
Comments
ranjansingh235 30-Jul-10 8:57am    
Thanks d@nish
Do you have a control of the two websites? If so, don't encrypt the userID when passing to the second website. Instead we do the following in similar situation.

User passes User ID to authentication webservice. The authentication webservice only responds on SSL. Once we authenticate the user, we create temporary GUID and pass it to the second website, which can verify the validity of the GUID and translated back to the user ID. That way not userID is stolen or replicated.
 
Share this answer
 
Comments
ranjansingh235 31-Jul-10 0:26am    
Thanks for answering my question,
Actually I don't have enough control on first website which is developed in php. They provide a link when user click on that, user navigate to our website where we check userid. If he is authorized to access our website then he don't have to login on our website and can seamlessly access our website. The question is that how can we pass userid from website one to website two.

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