Examples of PortalAuthenticationConfiguration


Examples of org.apache.jetspeed.administration.PortalAuthenticationConfiguration

            session.setAttribute(
                    PortalReservedParameters.PAGE_THEME_OVERRIDE_ATTRIBUTE,
                    decoratorName);
        }

        PortalAuthenticationConfiguration authenticationConfiguration = (PortalAuthenticationConfiguration)
        Jetspeed.getComponentManager().getComponent("org.apache.jetspeed.administration.PortalAuthenticationConfiguration");  
        if (authenticationConfiguration.isCreateNewSessionOnLogin())
        {
   
            ActiveAuthenticationIdentityProvider identityProvider = (ActiveAuthenticationIdentityProvider)
                Jetspeed.getComponentManager().getComponent("org.apache.jetspeed.security.activeauthentication.ActiveAuthenticationIdentityProvider");
            IdentityToken token = identityProvider.createIdentityToken(username);
View Full Code Here

Examples of org.apache.jetspeed.administration.PortalAuthenticationConfiguration

                AuditActivity audit = (AuditActivity)Jetspeed.getComponentManager().getComponent("org.apache.jetspeed.audit.AuditActivity");               
                boolean success = userManager.authenticate(username, password);
                if (success)
                {
                    audit.logUserActivity(username, request.getRemoteAddr(), AuditActivity.AUTHENTICATION_SUCCESS, "PortalFilter");
                    PortalAuthenticationConfiguration authenticationConfiguration = (PortalAuthenticationConfiguration)
                        Jetspeed.getComponentManager().getComponent("org.apache.jetspeed.administration.PortalAuthenticationConfiguration");
                    if (authenticationConfiguration.isCreateNewSessionOnLogin())
                    {
                        request.getSession().invalidate();
                    }
                    Subject subject = null;
                    try
View Full Code Here

Examples of org.apache.jetspeed.administration.PortalAuthenticationConfiguration

            session.setAttribute(
                    PortalReservedParameters.PAGE_THEME_OVERRIDE_ATTRIBUTE,
                    decoratorName);
        }

        PortalAuthenticationConfiguration authenticationConfiguration = (PortalAuthenticationConfiguration)
        Jetspeed.getComponentManager().getComponent("org.apache.jetspeed.administration.PortalAuthenticationConfiguration");  
        if (authenticationConfiguration.isCreateNewSessionOnLogin())
        {
   
            ActiveAuthenticationIdentityProvider identityProvider = (ActiveAuthenticationIdentityProvider)
                Jetspeed.getComponentManager().getComponent("org.apache.jetspeed.security.activeauthentication.ActiveAuthenticationIdentityProvider");
            IdentityToken token = identityProvider.createIdentityToken(username);
View Full Code Here

Examples of org.apache.jetspeed.administration.PortalAuthenticationConfiguration

                AuditActivity audit = (AuditActivity)Jetspeed.getComponentManager().getComponent("org.apache.jetspeed.audit.AuditActivity");               
                boolean success = userManager.authenticate(username, password);
                if (success)
                {
                    audit.logUserActivity(username, request.getRemoteAddr(), AuditActivity.AUTHENTICATION_SUCCESS, "PortalFilter");
                    PortalAuthenticationConfiguration authenticationConfiguration = (PortalAuthenticationConfiguration)
                        Jetspeed.getComponentManager().getComponent("org.apache.jetspeed.administration.PortalAuthenticationConfiguration");
                    if (authenticationConfiguration.isCreateNewSessionOnLogin())
                    {
                        request.getSession().invalidate();
                    }
                    Subject subject = null;
                    try
View Full Code Here

Examples of org.apache.jetspeed.administration.PortalAuthenticationConfiguration

            session.setAttribute(
                    PortalReservedParameters.PAGE_THEME_OVERRIDE_ATTRIBUTE,
                    decoratorName);
        }

        PortalAuthenticationConfiguration authenticationConfiguration = (PortalAuthenticationConfiguration)
        Jetspeed.getComponentManager().getComponent("org.apache.jetspeed.administration.PortalAuthenticationConfiguration");  
        if (authenticationConfiguration.isCreateNewSessionOnLogin())
        {
   
            ActiveAuthenticationIdentityProvider identityProvider = (ActiveAuthenticationIdentityProvider)
                Jetspeed.getComponentManager().getComponent("org.apache.jetspeed.security.activeauthentication.ActiveAuthenticationIdentityProvider");
            IdentityToken token = identityProvider.createIdentityToken(username);
View Full Code Here

Examples of org.apache.jetspeed.administration.PortalAuthenticationConfiguration

                    request.getSession().setAttribute(LoginConstants.ERRORCODE, LoginConstants.ERROR_INVALID_PASSWORD);
        }
                if (authUser != null)
                {
                    audit.logUserActivity(username, request.getRemoteAddr(), AuditActivity.AUTHENTICATION_SUCCESS, "PortalFilter");
                    PortalAuthenticationConfiguration authenticationConfiguration = (PortalAuthenticationConfiguration)
                        cm.getComponent("org.apache.jetspeed.administration.PortalAuthenticationConfiguration");
                    if (authenticationConfiguration.isCreateNewSessionOnLogin())
                    {
                        request.getSession().invalidate();
                    }
                    else
                    {
View Full Code Here

Examples of org.apache.jetspeed.administration.PortalAuthenticationConfiguration

          }
        }
        if (success)
        {
          audit.logUserActivity(username, request.getRemoteAddr(), AuditActivity.AUTHENTICATION_SUCCESS, "ShibbolethFilter");
          PortalAuthenticationConfiguration authenticationConfiguration = (PortalAuthenticationConfiguration)
              cm.getComponent("org.apache.jetspeed.administration.PortalAuthenticationConfiguration");
          if (authenticationConfiguration.isCreateNewSessionOnLogin())
          {
            request.getSession().invalidate();
          }
          else
          {
View Full Code Here

Examples of org.apache.jetspeed.administration.PortalAuthenticationConfiguration

                    PortalReservedParameters.PAGE_THEME_OVERRIDE_ATTRIBUTE,
                    decoratorName);
        }

        Boolean portalFiltered = Boolean.valueOf((String)request.getAttribute(PortalReservedParameters.PORTAL_FILTER_ATTRIBUTE));
        PortalAuthenticationConfiguration authenticationConfiguration = (PortalAuthenticationConfiguration)
        Jetspeed.getComponentManager().getComponent("org.apache.jetspeed.administration.PortalAuthenticationConfiguration");  
        if (!portalFiltered && authenticationConfiguration.isCreateNewSessionOnLogin())
        {
   
            ActiveAuthenticationIdentityProvider identityProvider = (ActiveAuthenticationIdentityProvider)
                Jetspeed.getComponentManager().getComponent("org.apache.jetspeed.security.activeauthentication.ActiveAuthenticationIdentityProvider");
            IdentityToken token = identityProvider.createIdentityToken(username);
View Full Code Here

Examples of org.apache.jetspeed.administration.PortalAuthenticationConfiguration

          }
        }
        if (success)
        {
          audit.logUserActivity(username, request.getRemoteAddr(), AuditActivity.AUTHENTICATION_SUCCESS, "ShibbolethFilter");
          PortalAuthenticationConfiguration authenticationConfiguration = (PortalAuthenticationConfiguration)
              cm.getComponent("org.apache.jetspeed.administration.PortalAuthenticationConfiguration");
          if (authenticationConfiguration.isCreateNewSessionOnLogin() && httpSession != null && !httpSession.isNew())
          {
            request.getSession().invalidate();
          }
          else
          {
View Full Code Here

Examples of org.apache.jetspeed.administration.PortalAuthenticationConfiguration

                    request.getSession().setAttribute(LoginConstants.ERRORCODE, LoginConstants.ERROR_INVALID_PASSWORD);
        }
                if (authUser != null)
                {
                    audit.logUserActivity(username, request.getRemoteAddr(), AuditActivity.AUTHENTICATION_SUCCESS, "PortalFilter");
                    PortalAuthenticationConfiguration authenticationConfiguration = (PortalAuthenticationConfiguration)
                        cm.getComponent("org.apache.jetspeed.administration.PortalAuthenticationConfiguration");
                    if (authenticationConfiguration.isCreateNewSessionOnLogin() && httpSession != null && !httpSession.isNew())
                    {
                        request.getSession().invalidate();
                    }
                    else
                    {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.