Closed kosmoz closed 1 year ago
When a login is attempted but no such user exists and forceCreate is set to false, the plugin raises a NullPointerException here:
forceCreate
false
NullPointerException
https://github.com/p2-inc/keycloak-magic-link/blob/9821b1e91806b0fe83fa5a4f71225d051d6fecb6/src/main/java/io/phasetwo/keycloak/magic/auth/MagicLinkAuthenticator.java#L85C67-L85C67
Keycloak then proceeds to return a 500 error response due to the following error (but I am not sure if this is caused by the plugin):
Uncaught server error: java.lang.IllegalStateException: Attempted to define event error without first setting the event type
@kosmoz Good catch. Please PR if you have the time.
You beat me to it :slightly_smiling_face: Thanks!
When a login is attempted but no such user exists and
forceCreate
is set tofalse
, the plugin raises aNullPointerException
here:https://github.com/p2-inc/keycloak-magic-link/blob/9821b1e91806b0fe83fa5a4f71225d051d6fecb6/src/main/java/io/phasetwo/keycloak/magic/auth/MagicLinkAuthenticator.java#L85C67-L85C67
Keycloak then proceeds to return a 500 error response due to the following error (but I am not sure if this is caused by the plugin):