<commit_before><!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:s="http://jboss.org/schema/seam/taglib"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:richext="http://java.sun.com/jsf/composite/richext"
	xmlns:ox="http://java.sun.com/jsf/composite/ox"
	xmlns:gluufn="http://www.gluu.org/jsf/functions">

	<h:outputStylesheet>
        .addConfig {
            text-align: right;
            white-space: nowrap;
        }

        .removeConfig {
            text-align: left;
            vertical-align: top;
        }
    </h:outputStylesheet>

	<ox:changePasswordDialog id="bindPassword" label="Change Bind Password"
		password="#{managePersonAuthenticationAction.ldapConfig.bindPassword}"
		setPasswordMethod="#{managePersonAuthenticationAction.updateLdapBindPassword}" />

	<h:form id="customAuthenticationForm">
		<div class="row">
			<div class="col-xs-12">
				<div class="nav-tabs-custom" style="margin-bottom: 0px;">
					<ul class="nav nav-tabs">
						<li class="active"><a href="#manage-ldap" data-toggle="tab">Manage
								LDAP Authentication</a></li>
						<li><a href="#authentication-method" data-toggle="tab">Default
								Authentication Method</a></li>						
						<li><a href="#ox-passport" data-toggle="tab">Passport
								Authentication Method</a></li>						
						<li><a href="#cas" data-toggle="tab">CAS Protocol</a></li>
					</ul>
					<div class="tab-content">
						<!-- System Configuration -->
						<div class="tab-pane active" id="manage-ldap">
						<div style="display: inline-block; width: 75% !important;">
							<h:panelGroup id="ldapManagementGroupId">
								
								<ox:ldapConfig ldapConfig="#{_action.ldapConfig}"
									ldapConfigAction="#{_action}" propertiesAction="#{_action}"
									displayBaseDn="true" displayAnonymousBind="false"
									displayRemoveButton="false" displayPrimaryKey="true"
									displayLocalPrimaryKey="true" displayEnable="false"
									changePasswordDialogId="bindPassword:changePasswordModalPanel"
									rendered="#{_action.existLdapConfigIdpAuthConf}" />
								 <a4j:commandButton value="Activate" action="#{_action.setExistLdapConfigIdpAuthConf(true)}" rendered="#{not _action.existLdapConfigIdpAuthConf}"
							                    render="ldapManagementGroupId" limitRender="true" styleClass="btn btn-success"/>
				                <a4j:commandButton value="Deactivate" action="#{_action.setExistLdapConfigIdpAuthConf(false)}" rendered="#{_action.existLdapConfigIdpAuthConf}"
			                    render="ldapManagementGroupId" limitRender="true" immediate="true" styleClass="btn btn-success"/>
			                    	
								<h:commandButton styleClass="btn btn-success"
									style="margin-left:4px" value="Test LDAP Connection"
									action="#{_action.testLdapConnection}"
									rendered="#{_action.existLdapConfigIdpAuthConf}" />

							</h:panelGroup>

							
							</div>
						</div>
						<div class="tab-pane" id="authentication-method">
							<div style="display: inline-block; width: 75% !important;">
								<h:panelGroup>
									<s:decorate template="/WEB-INF/incl/layout/edit.xhtml"
										id="auntheticationMode">
										<ui:define name="label">Authentication mode</ui:define>
										<h:selectOneMenu value="#{_action.authenticationMode}"
											styleClass="form-control">
											<s:selectItems
												value="#{_action.personAuthenticationConfigurationNames}"
												var="_name" label="#{_name}" noSelectionLabel="Default" />
										</h:selectOneMenu>
									</s:decorate>

									<s:decorate template="/WEB-INF/incl/layout/edit.xhtml"
										id="oxTrustAuntheticationMode">
										<ui:define name="label">oxTrust authentication mode</ui:define>
										<h:selectOneMenu value="#{_action.oxTrustAuthenticationMode}"
											styleClass="form-control">
											<s:selectItems
												value="#{_action.personAuthenticationConfigurationNames}"
												var="_name" label="#{_name}" noSelectionLabel="Default" />
										</h:selectOneMenu>
									</s:decorate>
								</h:panelGroup>
							</div>
						</div>
						
						
						<div class="tab-pane" id="ox-passport">
							<ui:param name="_ldapoxPassport" 	value="#{_action.ldapOxPassportConfiguration}" />
							<ui:param name="_ldapPassport" 	value="#{_action.ldapPassportConfigurations}" />
                                                
                                                
							
						<s:decorate template="/WEB-INF/incl/layout/edit.xhtml"
									id="PassportEnabledState">
									<ui:define name="label">Passport Support</ui:define>									
									<h:selectOneMenu value="#{_action.passportEnable}" styleClass="form-control"  
										id="scimEnabledStateId">
										<s:selectItems
											value="#{organizationService.booleanSelectionTypes}"
											var="_type" label="#{_type.displayName}"/>
										<s:convertEnum />
									</h:selectOneMenu>
						</s:decorate>	
						<hr></hr>					
							
 					<h:panelGroup id="strategyId" rendered="#{_action.passportEnable.getValue()  eq 'enabled'}">
	                    <rich:dataGrid iterationStatusVar="status" id="strategyConfigsId" value="#{_ldapPassport}" var="_passportConfig" columns="1" style="width: 100%;" border="0" columnClasses="noBorder">
	                       <div style="display: inline-block;width: 75% !important;">
	                        <ox:passportConf passportConfig="#{_passportConfig}" passportConfigFieldList="#{_passportConfig.fieldset}"
	                            authenicationConfigAction="#{_action}" propertiesAction="#{_configureCacheRefreshAction}"  displayEnable="false"
	                            renderAfterRomoval="strategyConfigsId"/> 
	                  		</div> 
	                    </rich:dataGrid>

                    <s:div styleClass="addConfig">
                    	<a4j:commandLink styleClass="btn btn-link" value="Add Strategy" action="#{_action.addStrategy()}" render="strategyId" execute="@form" style="margin-right:1100px;margin-top:50px;"/>
                    </s:div>
               		 </h:panelGroup>
						</div>	
                                                
                                                <div class="tab-pane" id="cas">
							<div style="display: inline-block; width: 75% !important;">
                                                            <h:panelGroup rendered="productInstallationCheckerAction.showIDP_CAS">
                                                                        <s:decorate template="/WEB-INF/incl/layout/edit.xhtml"
										id="casProtocolEnabled">
										<ui:define name="label">Enabled</ui:define>
                                                                                <h:selectBooleanCheckbox value="#{updateCASAction.enabled}"
											styleClass="form-control"
                                                                                        tabindex="0" >
										</h:selectBooleanCheckbox>
									</s:decorate>
                                                                    
									<s:decorate template="/WEB-INF/incl/layout/edit.xhtml"
										id="casProtocolSessionStorageType">
										<ui:define name="label">Shibboleth session/CAS storage service type (Server-side only for CAS)</ui:define>
										<h:selectOneMenu value="#{updateCASAction.sessionStorageType}"
											styleClass="form-control"
                                                                                        tabindex="1">
											<s:selectItems
												value="#{updateCASAction.sessionStorageTypes}"
												var="_name" label="#{_name}" noSelectionLabel="Default" />
										</h:selectOneMenu>
									</s:decorate>
                                                                    
                                                                        <s:decorate template="/WEB-INF/incl/layout/edit.xhtml"
										id="casProtocolBaseURL">
										<ui:define name="label">Base CAS server URL</ui:define>
										<h:outputText styleClass="form-control"
                                                                                    title=""
                                                                                    value="#{updateCASAction.casBaseURL}" size="100" />
									</s:decorate>
                                                                    
                                                                        <s:decorate template="/WEB-INF/incl/layout/edit.xhtml"
										id="casProtocolToProxyPatternsEnabled">
										<ui:define name="label">Enable ToProxy patterns</ui:define>
                                                                                <h:selectBooleanCheckbox value="#{updateCASAction.enableToProxyPatterns}"
											styleClass="form-control"
                                                                                        tabindex="0" >
										</h:selectBooleanCheckbox>
									</s:decorate>

									<s:decorate template="/WEB-INF/incl/layout/edit.xhtml"
										id="casProtocolAuthorizedToProxy">
										<ui:define name="label">CAS authorized to proxy pattern</ui:define>
										<h:inputText styleClass="form-control"
                                                                                    title=""
                                                                                    value="#{updateCASAction.authorizedToProxyPattern}" size="100" tabindex="2" 
                                                                                    required="false" disabled="true" />
									</s:decorate>

									<s:decorate template="/WEB-INF/incl/layout/edit.xhtml"
										id="casProtocolUnauthorizedToProxy">
										<ui:define name="label">CAS unauthorized to proxy pattern</ui:define>
										<h:inputText styleClass="form-control"
                                                                                    title=""
                                                                                    value="#{updateCASAction.unauthorizedToProxyPattern}" size="100" tabindex="3" 
                                                                                    required="false" disabled="true" />
									</s:decorate>
                                                                    
                                                                        <h:commandButton styleClass="btn btn-primary"
                                                                            style="margin-left:4px" value="Update configuration files"<commit_msg>Add IDP v3 CAS protocol configuration GUI #377 - field names fix<commit_after><!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:s="http://jboss.org/schema/seam/taglib"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:richext="http://java.sun.com/jsf/composite/richext"
	xmlns:ox="http://java.sun.com/jsf/composite/ox"
	xmlns:gluufn="http://www.gluu.org/jsf/functions">

	<h:outputStylesheet>
        .addConfig {
            text-align: right;
            white-space: nowrap;
        }

        .removeConfig {
            text-align: left;
            vertical-align: top;
        }
    </h:outputStylesheet>

	<ox:changePasswordDialog id="bindPassword" label="Change Bind Password"
		password="#{managePersonAuthenticationAction.ldapConfig.bindPassword}"
		setPasswordMethod="#{managePersonAuthenticationAction.updateLdapBindPassword}" />

	<h:form id="customAuthenticationForm">
		<div class="row">
			<div class="col-xs-12">
				<div class="nav-tabs-custom" style="margin-bottom: 0px;">
					<ul class="nav nav-tabs">
						<li class="active"><a href="#manage-ldap" data-toggle="tab">Manage
								LDAP Authentication</a></li>
						<li><a href="#authentication-method" data-toggle="tab">Default
								Authentication Method</a></li>						
						<li><a href="#ox-passport" data-toggle="tab">Passport
								Authentication Method</a></li>						
						<li><a href="#cas" data-toggle="tab">CAS Protocol</a></li>
					</ul>
					<div class="tab-content">
						<!-- System Configuration -->
						<div class="tab-pane active" id="manage-ldap">
						<div style="display: inline-block; width: 75% !important;">
							<h:panelGroup id="ldapManagementGroupId">
								
								<ox:ldapConfig ldapConfig="#{_action.ldapConfig}"
									ldapConfigAction="#{_action}" propertiesAction="#{_action}"
									displayBaseDn="true" displayAnonymousBind="false"
									displayRemoveButton="false" displayPrimaryKey="true"
									displayLocalPrimaryKey="true" displayEnable="false"
									changePasswordDialogId="bindPassword:changePasswordModalPanel"
									rendered="#{_action.existLdapConfigIdpAuthConf}" />
								 <a4j:commandButton value="Activate" action="#{_action.setExistLdapConfigIdpAuthConf(true)}" rendered="#{not _action.existLdapConfigIdpAuthConf}"
							                    render="ldapManagementGroupId" limitRender="true" styleClass="btn btn-success"/>
				                <a4j:commandButton value="Deactivate" action="#{_action.setExistLdapConfigIdpAuthConf(false)}" rendered="#{_action.existLdapConfigIdpAuthConf}"
			                    render="ldapManagementGroupId" limitRender="true" immediate="true" styleClass="btn btn-success"/>
			                    	
								<h:commandButton styleClass="btn btn-success"
									style="margin-left:4px" value="Test LDAP Connection"
									action="#{_action.testLdapConnection}"
									rendered="#{_action.existLdapConfigIdpAuthConf}" />

							</h:panelGroup>

							
							</div>
						</div>
						<div class="tab-pane" id="authentication-method">
							<div style="display: inline-block; width: 75% !important;">
								<h:panelGroup>
									<s:decorate template="/WEB-INF/incl/layout/edit.xhtml"
										id="auntheticationMode">
										<ui:define name="label">Authentication mode</ui:define>
										<h:selectOneMenu value="#{_action.authenticationMode}"
											styleClass="form-control">
											<s:selectItems
												value="#{_action.personAuthenticationConfigurationNames}"
												var="_name" label="#{_name}" noSelectionLabel="Default" />
										</h:selectOneMenu>
									</s:decorate>

									<s:decorate template="/WEB-INF/incl/layout/edit.xhtml"
										id="oxTrustAuntheticationMode">
										<ui:define name="label">oxTrust authentication mode</ui:define>
										<h:selectOneMenu value="#{_action.oxTrustAuthenticationMode}"
											styleClass="form-control">
											<s:selectItems
												value="#{_action.personAuthenticationConfigurationNames}"
												var="_name" label="#{_name}" noSelectionLabel="Default" />
										</h:selectOneMenu>
									</s:decorate>
								</h:panelGroup>
							</div>
						</div>
						
						
						<div class="tab-pane" id="ox-passport">
							<ui:param name="_ldapoxPassport" 	value="#{_action.ldapOxPassportConfiguration}" />
							<ui:param name="_ldapPassport" 	value="#{_action.ldapPassportConfigurations}" />
                                                
                                                
							
						<s:decorate template="/WEB-INF/incl/layout/edit.xhtml"
									id="PassportEnabledState">
									<ui:define name="label">Passport Support</ui:define>									
									<h:selectOneMenu value="#{_action.passportEnable}" styleClass="form-control"  
										id="scimEnabledStateId">
										<s:selectItems
											value="#{organizationService.booleanSelectionTypes}"
											var="_type" label="#{_type.displayName}"/>
										<s:convertEnum />
									</h:selectOneMenu>
						</s:decorate>	
						<hr></hr>					
							
 					<h:panelGroup id="strategyId" rendered="#{_action.passportEnable.getValue()  eq 'enabled'}">
	                    <rich:dataGrid iterationStatusVar="status" id="strategyConfigsId" value="#{_ldapPassport}" var="_passportConfig" columns="1" style="width: 100%;" border="0" columnClasses="noBorder">
	                       <div style="display: inline-block;width: 75% !important;">
	                        <ox:passportConf passportConfig="#{_passportConfig}" passportConfigFieldList="#{_passportConfig.fieldset}"
	                            authenicationConfigAction="#{_action}" propertiesAction="#{_configureCacheRefreshAction}"  displayEnable="false"
	                            renderAfterRomoval="strategyConfigsId"/> 
	                  		</div> 
	                    </rich:dataGrid>

                    <s:div styleClass="addConfig">
                    	<a4j:commandLink styleClass="btn btn-link" value="Add Strategy" action="#{_action.addStrategy()}" render="strategyId" execute="@form" style="margin-right:1100px;margin-top:50px;"/>
                    </s:div>
               		 </h:panelGroup>
						</div>	
                                                
                                                <div class="tab-pane" id="cas">
							<div style="display: inline-block; width: 75% !important;">
                                                            <h:panelGroup rendered="productInstallationCheckerAction.showIDP_CAS">
                                                                        <s:decorate template="/WEB-INF/incl/layout/edit.xhtml"
										id="casProtocolEnabled">
										<ui:define name="label">Enabled</ui:define>
                                                                                <h:selectBooleanCheckbox value="#{updateCASAction.enabled}"
											styleClass="form-control"
                                                                                        tabindex="0" >
										</h:selectBooleanCheckbox>
									</s:decorate>
                                                                    
									<s:decorate template="/WEB-INF/incl/layout/edit.xhtml"
										id="casProtocolSessionStorageType">
										<ui:define name="label">Shibboleth session/CAS storage service type (Server-side only for CAS)</ui:define>
										<h:selectOneMenu value="#{updateCASAction.sessionStorageType}"
											styleClass="form-control"
                                                                                        tabindex="1">
											<s:selectItems
												value="#{updateCASAction.sessionStorageTypes}"
												var="_name" label="#{_name}" noSelectionLabel="Default" />
										</h:selectOneMenu>
									</s:decorate>
                                                                    
                                                                        <s:decorate template="/WEB-INF/incl/layout/edit.xhtml"
										id="casProtocolBaseURL">
										<ui:define name="label">Base CAS server URL</ui:define>
										<h:outputText styleClass="form-control"
                                                                                    title=""
                                                                                    value="#{updateCASAction.casBaseURL}" size="100" />
									</s:decorate>
                                                                    
                                                                        <s:decorate template="/WEB-INF/incl/layout/edit.xhtml"
										id="casProtocolToProxyPatternsEnabled">
										<ui:define name="label">Enable Proxy Patterns</ui:define>
                                                                                <h:selectBooleanCheckbox value="#{updateCASAction.enableToProxyPatterns}"
											styleClass="form-control"
                                                                                        tabindex="0" >
										</h:selectBooleanCheckbox>
									</s:decorate>

									<s:decorate template="/WEB-INF/incl/layout/edit.xhtml"
										id="casProtocolAuthorizedToProxy">
										<ui:define name="label">Authorized Proxy Pattern</ui:define>
										<h:inputText styleClass="form-control"
                                                                                    title=""
                                                                                    value="#{updateCASAction.authorizedToProxyPattern}" size="100" tabindex="2" 
                                                                                    required="false" disabled="true" />
									</s:decorate>

									<s:decorate template="/WEB-INF/incl/layout/edit.xhtml"
										id="casProtocolUnauthorizedToProxy">
										<ui:define name="label">UnAuthorized Proxy Pattern</ui:define>
										<h:inputText styleClass="form-control"
                                                                                    title=""
                                                                                    value="#{updateCASAction.unauthorizedToProxyPattern}" size="100" tabindex="3" 
                                                                                    required="false" disabled="true" />
									</s:decorate>
                                                                    
                                                                        <h:commandButton styleClass="btn btn-primary"
                                                                            style="margin-left:4px" value="Update configuration files"
{'fraction_non_alphanumeric': 0.12352806414662085, 'fraction_numerical': 0.005131729667812142, 'mean_word_length': 1.6255262841332851, 'pattern_counts': {'":': 0, '<': 245, '<?xml version=': 0, '>': 243, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, 'xml': 20}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 150, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7253291', 'n_tokens_mistral': 7390, 'n_tokens_neox': 5332, 'n_words': 729}