/** * Get type of inbound identity protocol supported by this processor * * @return Type of inbound identity protocol */ public String getType(IdentityMessageContext context) { return getName(); }
/** * Get type of inbound identity protocol supported by this processor * * @return Type of inbound identity protocol */ public String getType(IdentityMessageContext context) { return getName(); }
protected void removeIdentityProcessor(IdentityProcessor requestProcessor) { FrameworkServiceDataHolder.getInstance().getIdentityProcessors().remove(requestProcessor); if (log.isDebugEnabled()) { log.debug("Removed IdentityProcessor : " + requestProcessor.getName()); } }
protected void removeIdentityProcessor(IdentityProcessor requestProcessor) { FrameworkServiceDataHolder.getInstance().getIdentityProcessors().remove(requestProcessor); if (log.isDebugEnabled()) { log.debug("Removed IdentityProcessor : " + requestProcessor.getName()); } }
protected void removeIdentityProcessor(IdentityProcessor requestProcessor) { FrameworkServiceDataHolder.getInstance().getIdentityProcessors().remove(requestProcessor); if (log.isDebugEnabled()) { log.debug("Removed IdentityProcessor : " + requestProcessor.getName()); } }
private IdentityProcessor getIdentityProcessor(IdentityRequest identityRequest) { List<IdentityProcessor> processors = FrameworkServiceDataHolder.getInstance().getIdentityProcessors(); for (IdentityProcessor requestProcessor : processors) { try { if (requestProcessor.canHandle(identityRequest)) { return requestProcessor; } } catch (Exception e) { log.error("Error occurred while checking if " + requestProcessor.getName() + " can handle " + identityRequest.toString()); } } return null; }
private IdentityProcessor getIdentityProcessor(IdentityRequest identityRequest) { List<IdentityProcessor> processors = FrameworkServiceDataHolder.getInstance().getIdentityProcessors(); for (IdentityProcessor requestProcessor : processors) { try { if (requestProcessor.canHandle(identityRequest)) { return requestProcessor; } } catch (Exception e) { log.error("Error occurred while checking if " + requestProcessor.getName() + " can handle " + identityRequest.toString()); } } return null; }
public IdentityResponse process(IdentityRequest identityRequest) throws FrameworkException { IdentityProcessor processor = getIdentityProcessor(identityRequest); if (processor != null) { if (log.isDebugEnabled()) { log.debug("Starting to process IdentityProcessor : " + processor.getName()); } return processor.process(identityRequest).build(); } else { throw FrameworkRuntimeException.error("No IdentityProcessor found to process the request"); } }
public IdentityResponse process(IdentityRequest identityRequest) throws FrameworkException { IdentityProcessor processor = getIdentityProcessor(identityRequest); if (processor != null) { if (log.isDebugEnabled()) { log.debug("Starting to process IdentityProcessor : " + processor.getName()); } return processor.process(identityRequest).build(); } else { throw FrameworkRuntimeException.error("No IdentityProcessor found to process the request"); } }
public IdentityResponse process(IdentityRequest identityRequest) throws FrameworkException { IdentityProcessor processor = getIdentityProcessor(identityRequest); if (processor != null) { if (log.isDebugEnabled()) { log.debug("Starting to process IdentityProcessor : " + processor.getName()); } return processor.process(identityRequest).build(); } else { throw FrameworkRuntimeException.error("No IdentityProcessor found to process the request"); } }
@Reference( name = "identity.processor", service = org.wso2.carbon.identity.application.authentication.framework.inbound.IdentityProcessor.class, cardinality = ReferenceCardinality.MULTIPLE, policy = ReferencePolicy.DYNAMIC, unbind = "removeIdentityProcessor" ) protected void addIdentityProcessor(IdentityProcessor requestProcessor) { FrameworkServiceDataHolder.getInstance().getIdentityProcessors().add(requestProcessor); Collections.sort(FrameworkServiceDataHolder.getInstance().getIdentityProcessors(), new HandlerComparator()); Collections.reverse(FrameworkServiceDataHolder.getInstance().getIdentityProcessors()); if (log.isDebugEnabled()) { log.debug("Added IdentityProcessor : " + requestProcessor.getName()); } }
@Reference( name = "identity.processor", service = IdentityProcessor.class, cardinality = ReferenceCardinality.MULTIPLE, policy = ReferencePolicy.DYNAMIC, unbind = "removeIdentityProcessor" ) protected void addIdentityProcessor(IdentityProcessor requestProcessor) { FrameworkServiceDataHolder.getInstance().getIdentityProcessors().add(requestProcessor); Collections.sort(FrameworkServiceDataHolder.getInstance().getIdentityProcessors(), new HandlerComparator()); Collections.reverse(FrameworkServiceDataHolder.getInstance().getIdentityProcessors()); if (log.isDebugEnabled()) { log.debug("Added IdentityProcessor : " + requestProcessor.getName()); } }
@Reference( name = "identity.processor", service = IdentityProcessor.class, cardinality = ReferenceCardinality.MULTIPLE, policy = ReferencePolicy.DYNAMIC, unbind = "removeIdentityProcessor" ) protected void addIdentityProcessor(IdentityProcessor requestProcessor) { FrameworkServiceDataHolder.getInstance().getIdentityProcessors().add(requestProcessor); Collections.sort(FrameworkServiceDataHolder.getInstance().getIdentityProcessors(), new HandlerComparator()); Collections.reverse(FrameworkServiceDataHolder.getInstance().getIdentityProcessors()); if (log.isDebugEnabled()) { log.debug("Added IdentityProcessor : " + requestProcessor.getName()); } }
authenticationRequest.setType(getName()); authenticationRequest.setPassiveAuth(Boolean.parseBoolean( String.valueOf(context.getParameter(InboundConstants.PassiveAuth)))); responseBuilder.setAuthName(getName()); responseBuilder.setContextKey(sessionDataKey); responseBuilder.setCallbackPath(getCallbackPath(context)); responseBuilder.setRelyingParty(getRelyingPartyId()); responseBuilder.setAuthType(getName()); String commonAuthURL = IdentityUtil.getServerURL(FrameworkConstants.COMMONAUTH, true, true); responseBuilder.setRedirectURL(commonAuthURL);
authenticationRequest.setType(getName()); try { authenticationRequest.setCommonAuthCallerPath(URLEncoder.encode(getCallbackPath(context), responseBuilder.setAuthName(getName()); responseBuilder.setContextKey(sessionDataKey); responseBuilder.setCallbackPath(getCallbackPath(context)); responseBuilder.setRelyingParty(getRelyingPartyId()); responseBuilder.setAuthType(getName()); String commonAuthURL = IdentityUtil.getServerURL(FrameworkConstants.COMMONAUTH, true, true); responseBuilder.setRedirectURL(commonAuthURL);