anon-iclr-submission/benchname-bug-localization huggingface dataset:
Repository: gluufederation/oxtrust
Issue: Fix duplicate source server name: 

# Description 

The fix is already in master branch just need to move it to 3.1.4 as that is required for the next release


The corresponding issue was here https://github.com/GluuFederation/oxTrust/issues/1043.

Changed files:
server/src/main/java/org/gluu/oxtrust/action/ManagePersonAuthenticationAction.java

diff --git a/server/src/main/java/org/gluu/oxtrust/action/ManagePersonAuthenticationAction.java b/server/src/main/java/org/gluu/oxtrust/action/ManagePersonAuthenticationAction.java
index 8faa9ef45..7918e6e68 100644
--- a/server/src/main/java/org/gluu/oxtrust/action/ManagePersonAuthenticationAction.java
+++ b/server/src/main/java/org/gluu/oxtrust/action/ManagePersonAuthenticationAction.java
@@ -278,22 +278,17 @@ public class ManagePersonAuthenticationAction
 
 	public boolean updateAuthConf(GluuAppliance appliance) {
 		try {
-			String configId = null;
 			List<OxIDPAuthConf> idpConf = new ArrayList<OxIDPAuthConf>();
 			for (GluuLdapConfiguration ldapConfig : this.sourceConfigs) {
-				if (idpConf.isEmpty()) {
-					configId = ldapConfig.getConfigId();
-				}
 				if (ldapConfig.isUseAnonymousBind()) {
 					ldapConfig.setBindDN(null);
 				}
 
 				OxIDPAuthConf ldapConfigIdpAuthConf = new OxIDPAuthConf();
-				ldapConfig.setConfigId(configId);
 				ldapConfig.updateStringsLists();
 				ldapConfigIdpAuthConf.setType("auth");
 				ldapConfigIdpAuthConf.setVersion(ldapConfigIdpAuthConf.getVersion() + 1);
-				ldapConfigIdpAuthConf.setName(configId);
+				ldapConfigIdpAuthConf.setName(ldapConfig.getConfigId());
 				ldapConfigIdpAuthConf.setEnabled(ldapConfig.isEnabled());
 				ldapConfigIdpAuthConf.setConfig(objectToJson(ldapConfig));
Repository: gluufederation/oxtrust
Issue: Update Grant Types

We need to add the following grant types:
- password
- client_credentials
-  urn:ietf:params:oauth:grant-type:uma-ticket

Changed files:
server/src/main/java/org/gluu/oxtrust/action/UpdateClientAction.java

diff --git a/server/src/main/java/org/gluu/oxtrust/action/UpdateClientAction.java b/server/src/main/java/org/gluu/oxtrust/action/UpdateClientAction.java
index 878d46cd1..ebb513eef 100644
--- a/server/src/main/java/org/gluu/oxtrust/action/UpdateClientAction.java
+++ b/server/src/main/java/org/gluu/oxtrust/action/UpdateClientAction.java
@@ -790,7 +790,10 @@ public class UpdateClientAction implements Serializable {
         tmpAvailableGrantTypes.add(new SelectableEntity<GrantType>(GrantType.AUTHORIZATION_CODE));
         tmpAvailableGrantTypes.add(new SelectableEntity<GrantType>(GrantType.IMPLICIT));
         tmpAvailableGrantTypes.add(new SelectableEntity<GrantType>(GrantType.REFRESH_TOKEN));
-
+        tmpAvailableGrantTypes.add(new SelectableEntity<GrantType>(GrantType.CLIENT_CREDENTIALS));
+        tmpAvailableGrantTypes.add(new SelectableEntity<GrantType>(GrantType.RESOURCE_OWNER_PASSWORD_CREDENTIALS)); 
+        tmpAvailableGrantTypes.add(new SelectableEntity<GrantType>(GrantType.OXAUTH_UMA_TICKET));
+        
         this.availableGrantTypes = tmpAvailableGrantTypes;
         selectAddedGrantTypes();
     }