PredixDev / predix-rest-client

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

dzhou10 opened this issue · comments

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.

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.