Client authentication is required

I am getting “Auth0.Core.Exceptions.ErrorApiException: Client authentication is required” error message while calling StartPasswordlessEmailFlowAsync.
I am passing below information -

await authClient.StartPasswordlessEmailFlowAsync(new PasswordlessEmailRequest()
{
Email = request.UserEmail,
ClientId = authDetails.ClientId,
ClientSecret = authDetails.ClientSecret,
Type = PasswordlessEmailRequestType.Code,
AuthenticationParameters = new Dictionary<string, object>() {
{
“scope”, “openid profile email offline_access”
}
}
})

Hi @ritesh.rai ,

Thank you for posting this topic on the Auth0 Community!

I checked the log in your tenant and the passwordless email connection and have the following observations:

  1. in your Email connection, the scope is
    "scope": "openid profile offline_access",

    Could you please add “email” in the scope, save the change, and click on Try?

  2. the Application enabled for your passwordless email connection is a Native App. ClientSecrete is required only for the Regular Web App as per this doc. So let’s remove it from your code and see how it goes.

If this error persists, please DM me the HAR file, and I will look into this further. Thank you!

Thanks @lihua.zhang for your quick reply. But the same piece of code is working fine for the argus-password connection. It seems something went wrong with newly created connection revival-dev-password .
Thanks Again!

This is working now, I might have missed something.

Thank you for the updates. Glad to know it’s resolved :clap: :+1: