Skip to content

Commit

Permalink
Merge pull request #43 from DMHP/main
Browse files Browse the repository at this point in the history
Set properties based on the context value
  • Loading branch information
DMHP authored Nov 9, 2023
2 parents c80c69c + 7d33d32 commit 235721c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/**
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@
<identity.application.authenticator.magiclink.exp.pkg.version>${project.version}
</identity.application.authenticator.magiclink.exp.pkg.version>
<carbon.kernel.version>4.9.10</carbon.kernel.version>
<carbon.identity.framework.version>5.25.460</carbon.identity.framework.version>
<carbon.identity.framework.version>5.25.491</carbon.identity.framework.version>
<apache.felix.scr.ds.annotations.version>1.2.10</apache.felix.scr.ds.annotations.version>
<identity.event.handler.notification.version>1.3.14</identity.event.handler.notification.version>
<identity.inbound.auth.oauth.version>6.11.172</identity.inbound.auth.oauth.version>
Expand Down

0 comments on commit 235721c

Please sign in to comment.