Class CibaOtherClaimsValidator
java.lang.Object
org.keycloak.protocol.oidc.grants.ciba.endpoints.CibaOtherClaimsValidator
Detects forged claims smuggled into the
otherClaims
of a parsed CIBA authentication request.-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanChecks whether a serialize/deserialize round trip drops anyotherClaimsentry because its name collides with an internal/reserved request property.
-
Method Details
-
hasForgedOtherClaims
Checks whether a serialize/deserialize round trip drops anyotherClaimsentry because its name collides with an internal/reserved request property.A claim whose name collides with a reserved property is consumed into that property during deserialization and disappears from
otherClaims. Claim values may legitimately change their Java type during the round trip (for example aLongbecoming anInteger), so values are never compared. A claim with anullvalue is also dropped, but only because serialization omitsnullvalues, which is not a collision, so such entries are ignored.- Parameters:
request- the parsed authentication request- Returns:
trueif a non-nullotherClaimsentry disappears after the round trip, i.e. a forged claim collided with a reserved property;falseotherwise
-