Client side I need to pass a piece of information (for this example, you can say a line) to each service call that I make. Services use this string (currentRole) along with user / password credentials to retrieve a set of user requirements related to their current role.
The solutions that I have encountered so far are as follows:
1) Change the message headers when they exit the client, and make sure that the message header has a service side.
2) Use user credentials, which from what I understand also require a special security token to save the string.
Are there any other approaches that are missing, for example, just adding this information to an existing token / credential? And are there any pros and cons to the solutions mentioned above?
Thanks.
source
share