Closed ycheng-aa closed 8 years ago
I think a better way to deal with token setting/fetching is to write a faraday middleware instead it being handled by config.rb
and rest_api.rb
files. IMHO this concern must be delegated to a middleware.
I will finally squash all commits to one before merge to master.
Few suggestions, mainly managing the PDC and Middleware tight-coupling
@ycheng-aa I have simplified the implementation by making the TokenFetcher only fetch token and not cache it and add a middleware that accepts arguments related to token in pull-request: #12
Could we close this and continue the discussion there?
Sure. Close it.
Fetching token in first restful api request, not in the configuration itself.
JIRA: PDC-1683