Hi,
I am trying to implement Custom MFA with Email. I have enabled mfa at the application level and added rules for that client application.
So while trying to authorize with AuthenticationApiclient (C#, auth0 nuget) using ResourceOwnerTokenRequest, it does throws me an error for mfa_required, but the mfa_token is not available in the ApiError object in the exception.
var result = client.GetTokenAsync(new ResourceOwnerTokenRequest
{
ClientId = auth0ClientId,
ClientSecret = auth0ClientSecret,
Audience = “https://domain.auth0.com/api/v2/”,
Scope = "openid profile ",
Realm = “Username-Password-Authentication”, // Specify the correct name of your DB connection
Username = “abcdefg@email.com”,
Password = “strong_password”,
});
While i do the similar stuff with http client and grant_type as “http://auth0.com/oauth/grant-type/password-realm”, i do receive the mfa_token in the response.
Any pointers will be helpful. Thanks in advance