Closed sashaCher closed 6 years ago
@dividedmind
According to this https://conjur.docs.apiary.io/ reference there are only 8 API those accept acting_as parameter. All those APIs accept the parameter as a part of query section of URL. Is this behavior the same for all APIs mentioned in reference? Where I can find more detailed version of Conjur v4 REST API reference?
For implementing it according to your proposal we need to do one those things:
To remove timer from token refresh mechanism
To implement IDisposable for client and to count references to its ApiKeyAuthenticator in order to dispose also it with inner timer
In current implementation not Client nor ApiKeyAuthenticator will have never collected by GC because Timer object holds them from inside. In some use cases it may lead to memory leak.
ActingAs property has a branch of problem