public class KindeTestHelper
{
public static async Task<string> GetAccessTokenAsync(string domain, string clientId, string clientSecret,
string audience, string scopes, string realm, string username, string password)
{
var client = new KindeClient(new ApplicationConfiguration(domain, "", ""), new KindeHttpClient());
await client.Authorize(new ClientCredentialsConfiguration(clientId, scopes, clientSecret, audience));
// How to authenticate a test user and get an access token
var accessToken = await client.GetToken();
return accessToken;
}
}
public class KindeTestHelper
{
public static async Task<string> GetAccessTokenAsync(string domain, string clientId, string clientSecret,
string audience, string scopes, string realm, string username, string password)
{
var client = new KindeClient(new ApplicationConfiguration(domain, "", ""), new KindeHttpClient());
await client.Authorize(new ClientCredentialsConfiguration(clientId, scopes, clientSecret, audience));
// How to authenticate a test user and get an access token
var accessToken = await client.GetToken();
return accessToken;
}
}