mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-06 19:36:41 +00:00
feat: add scim v2 service provider configuration endpoints (#9258)
# Which Problems Are Solved
* Adds support for the service provider configuration SCIM v2 endpoints
# How the Problems Are Solved
* Adds support for the service provider configuration SCIM v2 endpoints
* `GET /scim/v2/{orgId}/ServiceProviderConfig`
* `GET /scim/v2/{orgId}/ResourceTypes`
* `GET /scim/v2/{orgId}/ResourceTypes/{name}`
* `GET /scim/v2/{orgId}/Schemas`
* `GET /scim/v2/{orgId}/Schemas/{id}`
# Additional Context
Part of #8140
Co-authored-by: Stefan Benz <46600784+stebenz@users.noreply.github.com>
This commit is contained in:
@@ -60,7 +60,7 @@ func NewBulkHandler(
|
||||
) *BulkHandler {
|
||||
handlersByPluralResourceName := make(map[schemas.ScimResourceTypePlural]RawResourceHandlerAdapter, len(handlers))
|
||||
for _, handler := range handlers {
|
||||
handlersByPluralResourceName[handler.ResourceNamePlural()] = handler
|
||||
handlersByPluralResourceName[handler.Schema().PluralName] = handler
|
||||
}
|
||||
|
||||
return &BulkHandler{
|
||||
@@ -135,7 +135,7 @@ func (h *BulkHandler) processOperation(ctx context.Context, op *BulkRequestOpera
|
||||
}
|
||||
|
||||
if resourceNamePlural != "" && resourceID != "" {
|
||||
opResp.Location = buildLocation(ctx, resourceNamePlural, resourceID)
|
||||
opResp.Location = schemas.BuildLocationForResource(ctx, resourceNamePlural, resourceID)
|
||||
}
|
||||
|
||||
opResp.Status = strconv.Itoa(statusCode)
|
||||
|
||||
Reference in New Issue
Block a user