mirror of
https://github.com/zitadel/zitadel.git
synced 2025-03-01 13:37:24 +00:00

# Which Problems Are Solved - Adds support for the replace user SCIM v2 endpoint # How the Problems Are Solved - Adds support for the replace user SCIM v2 endpoint under `PUT /scim/v2/{orgID}/Users/{id}` # Additional Changes - Respect the `Active` field in the SCIM v2 create user endpoint `POST /scim/v2/{orgID}/Users` - Eventually consistent read endpoints used in SCIM tests are wrapped in `assert.EventuallyWithT` to work around race conditions # Additional Context Part of #8140
23 lines
645 B
Go
23 lines
645 B
Go
package scim
|
|
|
|
import (
|
|
"github.com/zitadel/zitadel/internal/api/authz"
|
|
"github.com/zitadel/zitadel/internal/api/http"
|
|
"github.com/zitadel/zitadel/internal/domain"
|
|
)
|
|
|
|
var AuthMapping = authz.MethodMapping{
|
|
"POST:/scim/v2/" + http.OrgIdInPathVariable + "/Users": {
|
|
Permission: domain.PermissionUserWrite,
|
|
},
|
|
"GET:/scim/v2/" + http.OrgIdInPathVariable + "/Users/{id}": {
|
|
Permission: domain.PermissionUserRead,
|
|
},
|
|
"PUT:/scim/v2/" + http.OrgIdInPathVariable + "/Users/{id}": {
|
|
Permission: domain.PermissionUserWrite,
|
|
},
|
|
"DELETE:/scim/v2/" + http.OrgIdInPathVariable + "/Users/{id}": {
|
|
Permission: domain.PermissionUserDelete,
|
|
},
|
|
}
|