This article is about my research related to the question which I posted on Stackoverflow - https://stackoverflow.com/questions/44004602/return-client-specific-response-from-the-same-rest-endpoint-in-spring-4 I wanted a way to customize my response from a Spring Rest Controller based on the client which made the request. Client identification can be done via a lot of things, but I had to do it via the scopes. Now, the way I will have to eventually proceed is by creating separate end-points for the clients for unmentionable reasons whatsoever, but I couldn't help myself writing down here so that somebody might just find useful and a better use-case for it. So, here is what I wanted things to work. Let me draw a picture. That would really help to make you understand. Here are the three challenges for me to achieve this: How to get the scope in my code somewhere so that I can do something about it? I needed a way to to intercept/filter the JSON response that was sen...
When you have A burning secret, Don't you have an urge To leak it? Yes, why share is A mystery. But let me tell you My history. I never liked Having to hide. But knew I needed To stay inside. Because, if ever, I dared come out, The risk was too high Of things I could spout. If I weren't always Out of sight, Then I'd spill secrets Left and right. So, being isolated By my choice Seemed much safer Than using my voice. Because, like me, Others were weak. All their secrets, They needed to speak. So it came out, Out to me. I'm the keeper, Don't you see? I hold secrets Large and small. What I know Could make men fall. From petty theft To cheating flings, There's quite a variety Of things. Of course, these secrets I'd never say. I try to keep them Locked away. Let's hope I'm not Trying in vain, Because I can inflict Enormous pain. The information I keep concealed Could all too easily Become revealed. I can cause Loads of trouble: Strong foundations Smashed ...
I feel like I am not anyone's first choice. Neither their favourite. Even if people tell me I'm important to them or I mean a lot to them, I know there is always someone they prefer to be with. Someone they chose over me. And that's hurt... a lot.
Comments
Post a Comment