Unable to update an existing active Saml identity provider and give it a new metadataurl when it's prior one was no longer valid
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 45/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- java
- Área
- authentication
Línea de trabajo
Comienza en SamlIdentityProviderConfiguration.validateSamlIdentityProviderDefinition y sigue el endpoint de actualización del proveedor de identidad a través de getIdentityProviderDefinitions y getExtendedMetadataDelegate. Reproduce el caso con un proveedor existente cuyo metadataurl no sea válido y, después, verifica que proporcionar un nuevo metadataurl válido lo actualiza sin fallar, mientras se comprueba que no haya entity IDs duplicados en los demás proveedores.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
What version of UAA are you running?
We're currently using 4.20 but found that the issue exists in the latest code base as well.
What did you do?
We're attempting to update an existing active identity provider whose metadataurl no longer points to a valid URL.
Ex:
- create a SAML identity provider with a valid metadataurl
- take the metadata provider offline (existing definition now has an invalid metadata url)
- use the UAA end point to update the identity provider and provide a new valid metadata url.
This fails b/c of SamlIdentityProviderConfiguration -> validateSamlIdentityProviderDefinition
When it's validating the new properties of the definitions, it actually tries to go and get existing IdentityProviders for that identity zone and calls getExtendedMetadataDelegate on every existing provider (including the existing one that we already know doesn't have a valid metadataurl). downstream that throws an exception unable to fetch metadata and we're not able to update the provider.
for (SamlIdentityProviderDefinition existing : getIdentityProviderDefinitions()) {
ConfigMetadataProvider existingProvider = (ConfigMetadataProvider) getExtendedMetadataDelegate(existing).getDelegate();
if (entityIDToBeAdded.equals(existingProvider.getEntityID()) &&
!(existing.getUniqueAlias().equals(clone.getUniqueAlias()))) {
entityIDexists = true;
break;
}
}
What did you expect to see? What goal are you trying to achieve with the UAA?
I should be able to update an existing IdentityProvider and give it a new valid metadataurl after the current one is no longer valid.
What did you see instead?
It threw an exception unable to fetch metadata
Please include UAA logs if available.
- Lenguaje dominante
- Java
- Estrellas
- 1.6k
- Forks
- 845
- Merge medio
- 1 d 3 h
- PR fusionados (30 d)
- 24
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de cloudfoundry/uaa
-
Dificultad 4/5 3-5 días Aptitud para principiantes 52/100
cloudfoundry/uaa#4086 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 3/5 1-2 días Aptitud para principiantes 68/100
cloudfoundry/uaa#3963 ·
Los mantenedores suelen responder en 1 día
-
clarification needed
Dificultad 4/5 3-5 días Aptitud para principiantes 38/100
cloudfoundry/uaa#3749 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
Dificultad 3/5 1-2 días Aptitud para principiantes 48/100
cloudfoundry/uaa#3736 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 42/100
cloudfoundry/uaa#3735 ·
Los mantenedores suelen responder en 1 día
Todos los issues de cloudfoundry/uaa
Issues similares
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
apache/rocketmq-dashboard#6896 ·
Los mantenedores suelen responder en 3 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
-
Unrecognized database schema version is treated as a pre-2.0 databasePosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
OpenIntegrationEngine/engine#496 ·
Los mantenedores suelen responder en 1 día
-
enhancement good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
SasanLabs/VulnerableApp#836 ·
Los mantenedores suelen responder en 1 día