Skip to content

Commit

Permalink
Add MFA support for Microsoft Authenticator
Browse files Browse the repository at this point in the history
MS Authenticator is currently incompatible with this tool (#442). I noticed that MFA errors are mapped in an array of `multifactor_type`, which I've updated with the appropriate error codes for MS Authenticator (tested running through a debugger).

Signed-off-by: John Hammerlund johnhammerlund@gmail.com
  • Loading branch information
johnhammerlund committed Aug 22, 2019
1 parent 2a70884 commit 95c050f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion endpoints-login.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,13 @@ static struct multifactor_type multifactor_types[] = {
.error_str = "outofbandrequired",
.error_failure_str = "multifactorresponsefailed",
.post_var = "otp"
}
},
{
.name = "Microsoft Authenticator Code",
.error_str = "microsoftauthrequired",
.error_failure_str = "microsoftauthfailed",
.post_var = "otp"
}
};

static void filter_error_message(char *message)
Expand Down

0 comments on commit 95c050f

Please sign in to comment.