diff --git a/components/org.wso2.carbon.identity.application.authenticator.magiclink/src/main/java/org/wso2/carbon/identity/application/authenticator/magiclink/MagicLinkAuthenticator.java b/components/org.wso2.carbon.identity.application.authenticator.magiclink/src/main/java/org/wso2/carbon/identity/application/authenticator/magiclink/MagicLinkAuthenticator.java
index fc60f66..947e56c 100644
--- a/components/org.wso2.carbon.identity.application.authenticator.magiclink/src/main/java/org/wso2/carbon/identity/application/authenticator/magiclink/MagicLinkAuthenticator.java
+++ b/components/org.wso2.carbon.identity.application.authenticator.magiclink/src/main/java/org/wso2/carbon/identity/application/authenticator/magiclink/MagicLinkAuthenticator.java
@@ -87,7 +87,8 @@ public class MagicLinkAuthenticator extends AbstractApplicationAuthenticator imp
private static final long serialVersionUID = 4345354156955223654L;
private static final Log log = LogFactory.getLog(MagicLinkAuthenticator.class);
- public static final String REDIRECT_URL = "REDIRECT_URL";
+ private static final String REDIRECT_URL = "REDIRECT_URL";
+ private static final String IS_API_BASED = "IS_API_BASED";
private AuthenticationContext authenticationContext;
/**
@@ -379,7 +380,8 @@ protected void triggerEvent(User user, AuthenticationContext context, String mag
properties.put(MagicLinkAuthenticatorConstants.TEMPLATE_TYPE, MagicLinkAuthenticatorConstants.EVENT_NAME);
properties.put(IdentityEventConstants.EventProperty.APPLICATION_NAME, context.getServiceProviderName());
properties.put(MagicLinkAuthenticatorConstants.EXPIRYTIME, expiryTime);
- properties.put(MagicLinkAuthenticatorConstants.IS_API_BASED_AUTHENTICATION_SUPPORTED, "true");
+ properties.put(MagicLinkAuthenticatorConstants.IS_API_BASED_AUTHENTICATION_SUPPORTED,
+ context.getProperty(IS_API_BASED));
properties.put(MagicLinkAuthenticatorConstants.CALLBACK_URL, context.getProperty(REDIRECT_URL));
Event identityMgtEvent = new Event(eventName, properties);
DiagnosticLog.DiagnosticLogBuilder diagnosticLogBuilder = null;
diff --git a/pom.xml b/pom.xml
index 6688200..3264b9f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -212,7 +212,7 @@
${project.version}
4.9.10
- 5.25.460
+ 5.25.491
1.2.10
1.3.14
6.11.172