PredixDev / predix-rest-client

Other
7 stars 16 forks source link

Need to pass specific scope as part of the token request. #5

Open dzhou10 opened 8 years ago

dzhou10 commented 8 years ago

Need to have the ability to change the requesting scope before making the token request. For example, if I pass "scope=acs.policies.read", the retrieved token shall only contain this scope, not "acs.policies.write". And within the same JVM, if we pass "scope=acs.policies.write", the retrieved token shall only contain "acs.policies.write" scope, not "acs.policies.read". The predix-rest-client shall also support concurrency. If I have two threads coming in my service, and make the above two requests, they shall work as expected without interrupting other thread's execution.

swapnavad commented 8 years ago

Will add scope token request, requirement to our backlog.As for the thread model, rest-client support connection pooling,settings passed in to the client are for that instance only. I don;t understand the thread issue.