Forums Register Login

how to pass authentications between web services

+Pie Number of slices to send: Send
Hi
Thank you for reading my post.
We have some web services that we use them to complete a user request.
imagine that user is authenticated with first web service using dummy mechanism, now we need to send user name,.... to the other web service (running in the same server) for next oprtaion, what we do not like to do is passing them as parameter.
is there some other mechanism for it?
for example

user request come to WS1
WS1 do some operation and ask WS2 for some other results.
WS2 give back the results to WS1
WS1 send the result to user.

now i want to ask, is it a good practice that WS1 store the user pereferences into the JNDI, and pass the JNDI name to WS2 ?

I should say that all WS are stateless.

Thanks
+Pie Number of slices to send: Send
Hey, why dont you pass the authentication information in the header?
Or using one of the standard http authentication mechanism.

Read this document
+Pie Number of slices to send: Send
Also, don't forgot to see THIS.
passwords must contain 14 characters, a number, punctuation, a small bird, a bit of cheese and a tiny ad.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 797 times.
Similar Threads
arrays not equal
Propagating client identity
Help please...communication between web apps.
Design question: Large XML Data in Web Services
design for integration two web services
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 17:10:17.