mirror of
https://github.com/zitadel/zitadel.git
synced 2025-01-11 14:33:41 +00:00
e621224ab2
# Which Problems Are Solved - Adds infrastructure code (basic implementation, error handling, middlewares, ...) to implement the SCIM v2 interface - Adds support for the user create SCIM v2 endpoint # How the Problems Are Solved - Adds support for the user create SCIM v2 endpoint under `POST /scim/v2/{orgID}/Users` # Additional Context Part of #8140
24 lines
532 B
Go
24 lines
532 B
Go
package metadata
|
|
|
|
import (
|
|
"context"
|
|
)
|
|
|
|
type provisioningDomainKeyType struct{}
|
|
|
|
var provisioningDomainKey provisioningDomainKeyType
|
|
|
|
type ScimContextData struct {
|
|
ProvisioningDomain string
|
|
ExternalIDScopedMetadataKey ScopedKey
|
|
}
|
|
|
|
func SetScimContextData(ctx context.Context, data ScimContextData) context.Context {
|
|
return context.WithValue(ctx, provisioningDomainKey, data)
|
|
}
|
|
|
|
func GetScimContextData(ctx context.Context) ScimContextData {
|
|
data, _ := ctx.Value(provisioningDomainKey).(ScimContextData)
|
|
return data
|
|
}
|