Thanks for your replies. Sorry i was on holidays with less internet access.
I agree with Carl that it will be an insecure way to do it.
After discussion with the solution architect, we decided to go for SSO, so that security wont be any issue.
Thanks for your inputs, I am closing the thread.