private string GetAuthToken(Scope[] scopes)
        {
            var forge        = _configuration.GetSection("Forge");
            var clientId     = forge.GetValue <string>("ClientId");
            var clientSecret = forge.GetValue <string>("ClientSecret");

            var bearer = _client.AuthenticateWithHttpInfo(clientId, clientSecret, "client_credentials", scopes);

            if (bearer.StatusCode != 200)
            {
                throw new Exception("Failed to authenticate with Forge");
            }

            return(bearer.Data.access_token);
        }