Package org.geoserver.security.config

Examples of org.geoserver.security.config.PreAuthenticatedUserNameFilterConfig


    @Override
    public void initializeFromConfig(SecurityNamedServiceConfig config) throws IOException {
        super.initializeFromConfig(config);
                       
        PreAuthenticatedUserNameFilterConfig authConfig =
                (PreAuthenticatedUserNameFilterConfig) config;

        roleSource=authConfig.getRoleSource();
        rolesHeaderAttribute=authConfig.getRolesHeaderAttribute();
        userGroupServiceName=authConfig.getUserGroupServiceName();
        roleConverterName=authConfig.getRoleConverterName();
        roleServiceName=authConfig.getRoleServiceName();    
       
        // TODO, Justin, is this ok ?
        if (PreAuthenticatedUserNameRoleSource.Header.equals(getRoleSource())) {
            String converterName = authConfig.getRoleConverterName();
            if (converterName==null || converterName.length()==0)
                setConverter(GeoServerExtensions.bean(GeoServerRoleConverter.class));
            else
                setConverter((GeoServerRoleConverter)
                    GeoServerExtensions.bean(converterName));
View Full Code Here


                    // before 2.5
                    if (j2eeConfig.getRoleSource() == null) {
                        j2eeConfig.setRoleSource(J2EERoleSource.J2EE);
                    }
                } else if (fConfig instanceof PreAuthenticatedUserNameFilterConfig) {
                    PreAuthenticatedUserNameFilterConfig userNameConfig = (PreAuthenticatedUserNameFilterConfig) fConfig;
                    RoleSource rs = userNameConfig.getRoleSource();
                    if (rs != null) {
                        // use the right RoleSource enum
                        userNameConfig
                                .setRoleSource(PreAuthenticatedUserNameRoleSource
                                        .valueOf(rs.toString()));
                    }
                }
                saveFilter(fConfig, mh);
View Full Code Here

TOP

Related Classes of org.geoserver.security.config.PreAuthenticatedUserNameFilterConfig

Copyright © 2018 www.massapicom. 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.