async Task <string> IAuthenticationMethod.GetTokenAsync(VaultClient server) { var parameters = new { app_id = _appId, user_id = _userId, }; var lease = await server.PostAsync <Lease>("auth/" + _path + "/login", parameters).ConfigureAwait(false); return(lease.Auth.ClientToken); }
Task <string> IAuthenticationMethod.GetTokenAsync(VaultClient server) { return(Task.FromResult(_token)); }