Skip to content

Commit

Permalink
Merge pull request #58 from DMHP/api
Browse files Browse the repository at this point in the history
Set error message as authenticator data
  • Loading branch information
DMHP authored Nov 16, 2023
2 parents b320520 + 317a29e commit 72d8f80
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,9 @@ public Optional<AuthenticatorData> getAuthInitiationData(AuthenticationContext c
authenticatorData.setAdditionalData(getAdditionalData(context, false));
}
authenticatorData.setRequiredParams(requiredParameterList);
if (context.getProperty(AUTHENTICATOR_MESSAGE) != null) {
authenticatorData.setMessage((AuthenticatorMessage) context.getProperty(AUTHENTICATOR_MESSAGE));
}

return Optional.of(authenticatorData);
}
Expand Down

0 comments on commit 72d8f80

Please sign in to comment.