I am creating a console app in C# to monitor our Okta event logs. I am having trouble finding code to query these logs. I have tried:
var client = new OktaClient(new OktaClientConfiguration
{
OktaDomain = Globals.oktaDomain,
Token= Globals.token
});
Console.WriteLine(client.Applications.ListApplications().ToArrayAsync());
And I have tried
var client = new OktaClient(Globals.token, Globals.oktaDomain);
var eventList = client.GetEventsClient();
But neither of these have worked. Is this the wrong code to create a link between my app and Okta, or is it a permissions issue on my Okta account? Both attempts returned empty strings, not errors.