mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 04:57:33 +00:00
fix: scim 2.0 patch ignore op casing (#9282)
# Which Problems Are Solved - Some SCIM clients send "op" of a patch operation in PascalCase # How the Problems Are Solved - Well known "op" values of patch operations are matched case-insensitive. # Additional Context Related to #8140
This commit is contained in:
@@ -60,6 +60,9 @@ func (req *OperationRequest) Validate() error {
|
||||
}
|
||||
|
||||
func (op *Operation) validate() error {
|
||||
// ignore the casing, as some scim clients send these capitalized
|
||||
op.Operation = OperationType(strings.ToLower(string(op.Operation)))
|
||||
|
||||
if !op.Operation.isValid() {
|
||||
return serrors.ThrowInvalidValue(zerrors.ThrowInvalidArgumentf(nil, "SCIM-opty1", "Patch op %s not supported", op.Operation))
|
||||
}
|
||||
|
Reference in New Issue
Block a user