cyberark / conjur-api-dotnet

.NET client for the CyberArk Conjur API
Apache License 2.0
15 stars 11 forks source link

Improve thread-safety of the API key authenticator #18

Closed sashaCher closed 6 years ago

sashaCher commented 6 years ago

What does this pull request do? Improves thread-safety of ApiKeyAuthentifiactor class. What background context can you provide? This functionality is nesessary in Vault-Conjur Synchroniser. After LogIn, Client instance passes to multi threaded code. We need to be sure that there is no race condition when token expires. There is similar pull request for Conjur v4 api. Where should the reviewer start? conjur-api/ApiKeyAuthenticator.cs